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

Function abstractQuery

lib/index-browser.js:9115–9132  ·  view source on GitHub ↗
(fun, opts, callback)

Source from the content-addressed store, hash-verified

9113 }
9114
9115 function abstractQuery(fun, opts, callback) {
9116 const db = this;
9117 if (typeof opts === 'function') {
9118 callback = opts;
9119 opts = {};
9120 }
9121 opts = opts ? coerceOptions(opts) : {};
9122
9123 if (typeof fun === 'function') {
9124 fun = {map : fun};
9125 }
9126
9127 const promise = Promise.resolve().then(function () {
9128 return queryPromised(db, fun, opts);
9129 });
9130 promisedCallback(promise, callback);
9131 return promise;
9132 }
9133
9134 const abstractViewCleanup = callbackify(function () {
9135 const db = this;

Callers

nothing calls this directly

Calls 3

coerceOptionsFunction · 0.70
queryPromisedFunction · 0.70
promisedCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…