MCPcopy Create free account
hub / github.com/apache/pouchdb / customQuery

Function customQuery

lib/index.js:8437–8446  ·  view source on GitHub ↗
(db, fun, opts)

Source from the content-addressed store, hash-verified

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