dojox.data.CouchDBRestStore¶
Status: | Draft |
---|---|
Version: | 1.0 |
Project owner: | Kris Zyp |
Authors: | Kris Zyp, Marcus Reimann |
Available: | since V1.2 |
dojox.data.CouchDBRestStore is a subclass of JsonRestStore for connecting to the open source document-oriented database Apache CouchDB.
Introduction¶
CouchDBRestStore essentially has the same functionality as JsonRestStore, but has some extra adaptations for automatic creation of stores based on CouchDB’s database listing and working properly with CouchDB’s idiosyncrasies.
Usage¶
You can create a set of stores for all available CouchDB tables/databases:
myStores = dojox.data.CouchDBRestStore.getStores("http://192.168.0.68:5984/_utils/");
This will return a object where each property name is the name of the store, and each value is the actual store for interacting with the CouchDB database.