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 couchbase
Visit http://localhost:8091
Dependencies
- hemera-joi
Install
npm i hemera-couchbase-store --save
API
See Store Interface.
Database specific interface
query
The pattern is:
topic
: is the store name to publish tocouchbase-store
cmd
: is the command to executequery
collection
: the name of the table or collectionstring
bucket
: the couchbase bucket namestring
(optional)query
: the search criteriastring
vars
: the search variablesobject
(optional)
Example:
hemera