Node Couchdb Client - Couche
There are already many couchdb client in npm, and some of them are great project, but still not implements all the couchdb features that satisfied my needs in auth and flexibility, and not updated for one year. Some other libs has fewer apis and failed to meet needs. Even some are not complete yet or not freindly to use.
npm install couche --save
Create a couch server:
var couche =server = ;
var CouchDB = CouchDB;server = '';
You can pass username && password to auth() make authentication:
Or you can utilize the session by login:
server;Get a database:``` jsvar db = server.database('couche');
Or using bind:
server;var db = servercouche;// destroyserver;
You can extend database:
Create database and insert new doc
var server = '';var db = server;db;
(The BSD License)
Copyright (c) 2014, Villa.Gao <firstname.lastname@example.org>; All rights reserved.