MCPcopy Index your code
hub / github.com/apache/pouchdb / customQuery

Function customQuery

lib/index-browser.js:8399–8408  ·  view source on GitHub ↗
(db, fun, opts)

Source from the content-addressed store, hash-verified

8397 // and override the default behavior
8398 /* istanbul ignore next */
8399 function customQuery(db, fun, opts) {
8400 return new Promise(function (resolve, reject) {
8401 db._query(fun, opts, function (err, res) {
8402 if (err) {
8403 return reject(err);
8404 }
8405 resolve(res);
8406 });
8407 });
8408 }
8409
8410 // custom adapters can define their own api._viewCleanup
8411 // and override the default behavior

Callers 1

queryPromisedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…