Skip to content

Instantly share code, notes, and snippets.

@sygi
Created February 8, 2014 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sygi/8892154 to your computer and use it in GitHub Desktop.
Save sygi/8892154 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var PouchDB = require('./');
var testUtils = require('../tests/test.utils.js');
var myDB;
testUtils.initTestDB('asdfl', function(err, db){
myDB = db;
var doc = {_id: "bla", cos:1};
myDB.put(doc, function(err, res){
console.log(err, res);
});
});
//here i'd like to:
var doc2 = {_id:"dsaf"};
myDB.put(doc2, function(blabl...a){});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment