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

Function customQuery

lib/index.es.js:8432–8441  ·  view source on GitHub ↗
(db, fun, opts)

Source from the content-addressed store, hash-verified

8430 // and override the default behavior
8431 /* istanbul ignore next */
8432 function customQuery(db, fun, opts) {
8433 return new Promise(function (resolve, reject) {
8434 db._query(fun, opts, function (err, res$$1) {
8435 if (err) {
8436 return reject(err);
8437 }
8438 resolve(res$$1);
8439 });
8440 });
8441 }
8442
8443 // custom adapters can define their own api._viewCleanup
8444 // 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…