nosqwal-couchbase

Nosqwal adapter for couchbase

Usage no npm install needed!

<script type="module">
  import nosqwalCouchbase from 'https://cdn.skypack.dev/nosqwal-couchbase';
</script>

README

nosqwal-couchbase Build Status Coverage Status

Nosqwal adapter for couchbase

Install

$ npm install --save nosqwal-couchbase

Usage

const nosqwalCouchbase = require('nosqwal-couchbase');
const db = nosqwalCouchbase();

const userCollection = db.defineCollection('user');

userCollection.query()
.then(users => {
    console.log(users);
    // => []
});

API

nosqwalCouchbase([options])

Retuns a noSqwal instance, see api here

options

options.connectionString

Type: string
Default: couchbase://localhost?detailed_errcodes=1

Couchbase connection string

options.bucketName

Type: string
Default: default

Couchbase bucket name

License

MIT © Thomas Sileghem