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