(fun, opts, callback)
| 9151 | } |
| 9152 | |
| 9153 | function abstractQuery(fun, opts, callback) { |
| 9154 | const db = this; |
| 9155 | if (typeof opts === 'function') { |
| 9156 | callback = opts; |
| 9157 | opts = {}; |
| 9158 | } |
| 9159 | opts = opts ? coerceOptions(opts) : {}; |
| 9160 | |
| 9161 | if (typeof fun === 'function') { |
| 9162 | fun = {map : fun}; |
| 9163 | } |
| 9164 | |
| 9165 | const promise = Promise.resolve().then(function () { |
| 9166 | return queryPromised(db, fun, opts); |
| 9167 | }); |
| 9168 | promisedCallback(promise, callback); |
| 9169 | return promise; |
| 9170 | } |
| 9171 | |
| 9172 | const abstractViewCleanup = callbackify(function () { |
| 9173 | const db = this; |
nothing calls this directly
no test coverage detected
searching dependent graphs…