couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "GettingStartedWithSmalltalk" by James Robertson
Date Thu, 21 Aug 2008 20:50:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by James Robertson:

New page:
There is a nascent interface being built for [ Cincom Smalltalk].
 To try that out, you'll need to:

 * [ Download Cincom Smalltalk]
 * Get an Account in the [
Cincom Smalltalk Public Repository]
 * Load the "CouchDB" package from the repository

Once it's loaded, you can try things like this:

"database API"
Interface new createDB: 'mydb'.     
Interface new getDatabases.
Interface new getDatabaseInformation: 'mydb'.
Interface new compact: 'mydb'.
Interface new deleteDB: 'myDB'.  

"Document APIs"
settings := Settings new.
Interface new saveNamedObject: settings id: 'mydbSettings' to: 'mydb'.
Interface new getObject: 'mydbSettings' from: 'mydb'
Interface new allObjectsFrom: 'mydb'.

Interface new 
	deleteDocument: 'docIdHere' 
	revision: 'RevisionIdHere' 
	from: 'mydb'

The POST API for storing documents is also supported, as is the delete API.

View raw message