public
Last active

  • Download Gist
pouch.idb.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.