Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active December 10, 2015 17:48
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save calvinmetcalf/4469674 to your computer and use it in GitHub Desktop.
//GOOD NEWS, YOU CAN NOW OPEN POUCH SYNCRONOUSLY (god damn lack of spell checking in code pages)
/*var db,
cb = function(err,database){
if(err){
console.error("Bad Stuff happend");
}else{
console.log("good news!")
db=database;
}
};
Pouch("pouchtest",cb);
*/
var db = Pouch("pouchtest");
//what you still want confirmation ?
var cb = function(err,database){
if(err){
console.error("Bad Stuff happend");
}else{
console.log("good news!")
}
};
db = Pouch("pouchtest",cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment