Skip to content

Instantly share code, notes, and snippets.

@marten-de-vries
Created October 14, 2015 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marten-de-vries/7934884e71b234f7bca9 to your computer and use it in GitHub Desktop.
Save marten-de-vries/7934884e71b234f7bca9 to your computer and use it in GitHub Desktop.
var wrappers = require("pouchdb-wrappers");
var noops = {};
// also add all the other methods
"get allDocs getAttachment info revsDiff put post".split(" ")).forEach(function (name) {
noops[name] = function (orig) {return orig(); };
});
wrappers.installWrapperMethods(db, noops);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment