(fun, opts, callback)
| 9109 | } |
| 9110 | |
| 9111 | function abstractQuery(fun, opts, callback) { |
| 9112 | const db = this; |
| 9113 | if (typeof opts === 'function') { |
| 9114 | callback = opts; |
| 9115 | opts = {}; |
| 9116 | } |
| 9117 | opts = opts ? coerceOptions(opts) : {}; |
| 9118 | |
| 9119 | if (typeof fun === 'function') { |
| 9120 | fun = {map : fun}; |
| 9121 | } |
| 9122 | |
| 9123 | const promise = Promise.resolve().then(function () { |
| 9124 | return queryPromised(db, fun, opts); |
| 9125 | }); |
| 9126 | promisedCallback(promise, callback); |
| 9127 | return promise; |
| 9128 | } |
| 9129 | |
| 9130 | const abstractViewCleanup = callbackify(function () { |
| 9131 | const db = this; |
nothing calls this directly
no test coverage detected
searching dependent graphs…