Alpha Notice
This is a work-in-progress project, it is functional but with some possible bugs.
Cbez
Couchbase Made Easy for Node.js, the original Couchbase Node.js module is not quick and easy for map/reduce, no chained queries, etc. This project Cbez tries to make everything as simple as possible for developers when utilising Couchbase in a project.
This is an ES6 module to be imported with ES6 'import' keyword.
Feature Request and Bug Reporting
- Your comments are truely welcome!
- Issue board: https://github.com/datdinhquoc/cbez/issues
Installation
npm install cbez
Examples
Create Connection
; var Cb = ;Cb;
Reset Id Counter of Certain Type
Cb;
Get Next Id of Certain Type
Cb;
Insert/Upsert A Document
Cb;console; //the 3 consistency levels of N1QLvar Consistency = cbezC1; //or C2, C3 Cb;
Select Documents
//the from bucket clause is auto-addedCb;console; Cb;
Create Viewgroup (aka. Design Document)
{ if DocType=="user" ;} Cb;
Get Documents in a View
var Query = Cb; Cb;
//end of file