Skip to content

Instantly share code, notes, and snippets.

@calvinmetcalf
Last active December 10, 2015 17:38
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 calvinmetcalf/4469112 to your computer and use it in GitHub Desktop.
Save calvinmetcalf/4469112 to your computer and use it in GitHub Desktop.
pouchdb in javascript
var db,
cb = function(err,database){
if(err){
console.error("Bad Stuff happend");
}else{
console.log("good news!")
db=database;
}
};
Pouch("http://url.to.couchdb/dbname",cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment