hemera-couchbase-store

3.0.0 • Public • Published

Hemera-couchbase-store package

npm styled with prettier

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 ---name db -8091-8094:8091-8094 -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 to couchbase-store
  • cmd: is the command to execute query
  • collection: the name of the table or collection string
  • bucket: the couchbase bucket name string (optional)
  • query: the search criteria string
  • vars: the search variables object (optional)

Example:

hemera.act({
  topic: 'couchbase-store',
  cmd: 'query',
  query: 'SELECT FROM default LIMIT 1'
}, function(err, resp) ...)

Readme

Keywords

none

Package Sidebar

Install

npm i hemera-couchbase-store

Weekly Downloads

0

Version

3.0.0

License

MIT

Last publish

Collaborators

  • starptech