Couch db
: shell
: couch-db
: couch-db
: /modules/db/couch/services/couch-db.js
: https://github.com/DecentCMS/DecentCMS/blob/master/modules/db/couch/services/couch-db.js
CouchDB()
Used to get a CouchDB object for a given connection and database.
couchDB.getCouch(config) ⇒ Couch
Gets a Couch object using the settings on the config object.
Kind: instance method of CouchDB
Returns: Couch - The configured Couch object.
| Param | Type | Description |
|---|---|---|
| config | object |
The configuration. |
| config.connection | string |
The name of the connection to the CouchDB server to use. Must be one of the property names on the 'connections' property of the settings of the 'couch-db' feature. |
| config.database | string |
The name of the database. |