Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var couch = require('node-couchdb/lib/couchdb')
- var client = couch.createClient(5984cp,'localhost');
- var db = client.db('server')
- db.
- saveDoc('score', {name: 'Test', points: 10},function(er,ok) {
- if (er) throw new Error(JSON.stringify(er));
- sys.puts("save a document");
- });
Add Comment
Please, Sign In to add comment