hemera-couchbase-store
v3.0.0
Published
This is a plugin to use Couchbase with Hemera
Downloads
221
Readme
Hemera-couchbase-store package
This is a plugin to use Couchbase with Hemera.
Windows
Requires to set npm config set msvs_version 2013 to build the package
Start Couchbase with Docker
docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbaseVisit http://localhost:8091
Dependencies
- hemera-joi
Install
npm i hemera-couchbase-store --saveAPI
See Store Interface.
Database specific interface
query
The pattern is:
topic: is the store name to publish tocouchbase-storecmd: is the command to executequerycollection: the name of the table or collectionstringbucket: the couchbase bucket namestring(optional)query: the search criteriastringvars: the search variablesobject(optional)
Example:
hemera.act({
topic: 'couchbase-store',
cmd: 'query',
query: 'SELECT FROM default LIMIT 1'
}, function(err, resp) ...)