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() {
          ...
        } );

    Install

    npm i cti-couchbase-client

    DownloadsWeekly Downloads

    4

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • cantireinnovations