cti-couchbase-client

3.0.0 • Public • Published

cti-couchbase-client

A wrapper of couchnode which provides a consistent way for connection and schema setup.

Usage

const bunyan = require( 'bunyan' );
const CouchbaseClient = require( 'cti-couchbase-client' );
const pathLib = require( 'path' );

const log = bunyan.createLogger( { name: 'example' } );

const client = new CouchbaseClient( {
    cnstr: 'couchbase://localhost',
    log: log
  } );

const bucket = client.openBucket( {
    name: 'default',
    designDocsPath: pathLib.join( __dirname, 'designDocs' )
} );

return bucket
    .initAsync
    .then( function() {
      ...
    } );

/cti-couchbase-client/

    Package Sidebar

    Install

    npm i cti-couchbase-client

    Weekly Downloads

    3

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • cantireinnovations