(fun, opts, callback)
| 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; |
nothing calls this directly
no test coverage detected
searching dependent graphs…