dojox.data.CouchDBRestStore¶
Status: | Draft |
---|---|
Version: | 1.0 |
Authors: | Kris Zyp |
Developers: | Kris Zyp |
Available: | since V1.2 |
dojox.data.CouchDBRestStore is a subclass of JsonRestStore <dojo/data/JsonRestStore> for connecting to CouchDB <http://couchdb.org/>.
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.
See also¶
- CouchDBRestStore is described in more detail here: http://www.sitepen.com/blog/2008/09/26/couchdbreststore/
- JsonRestStore is described in more detail here: http://www.sitepen.com/blog/2008/06/13/restful-json-dojo-data/