You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2008/08/21 22:50:28 UTC
[Couchdb Wiki] Update of "GettingStartedWithSmalltalk" by James Robertson
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.