This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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