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

Function customQuery

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

Source from the content-addressed store, hash-verified

8393 // and override the default behavior
8394 /* istanbul ignore next */
8395 function customQuery(db, fun, opts) {
8396 return new Promise(function (resolve, reject) {
8397 db._query(fun, opts, function (err, res) {
8398 if (err) {
8399 return reject(err);
8400 }
8401 resolve(res);
8402 });
8403 });
8404 }
8405
8406 // custom adapters can define their own api._viewCleanup
8407 // 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…