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

Function abstractQuery

lib/index.es.js:9148–9165  ·  view source on GitHub ↗
(fun, opts, callback)

Source from the content-addressed store, hash-verified

9146 }
9147
9148 function abstractQuery(fun, opts, callback) {
9149 const db = this;
9150 if (typeof opts === 'function') {
9151 callback = opts;
9152 opts = {};
9153 }
9154 opts = opts ? coerceOptions(opts) : {};
9155
9156 if (typeof fun === 'function') {
9157 fun = {map : fun};
9158 }
9159
9160 const promise = Promise.resolve().then(function () {
9161 return queryPromised(db, fun, opts);
9162 });
9163 promisedCallback(promise, callback);
9164 return promise;
9165 }
9166
9167 const abstractViewCleanup = callbackify(function () {
9168 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…