couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
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:
http://wiki.apache.org/couchdb/GettingStartedWithSmalltalk

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

 * [http://www.cincomsmalltalk.com/scripts/CommunityDownloadPage.ssp Download Cincom Smalltalk]
 * Get an Account in the [http://www.cincomsmalltalk.com/CincomSmalltalkWiki/Public+Store+Repository
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.

Mime
View raw message