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.
Installation
npm install couche --save
Usage
Create a couch server:
var couche =server = ;
Or
var CouchDB = CouchDB;server = 'http://localhost:5984';
You can pass username && password to auth() make authentication:
server;
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:
db;db;
Create database and insert new doc
var server = 'http://localhost:5984';var db = server;db;
APIs
Server
Database
Document
Config
License
(The BSD License)
Copyright (c) 2014, Villa.Gao <jky239@gmail.com>;
All rights reserved.