(db, fun, opts)
| 8393 | // and override the default behavior |
| 8394 | /* istanbul ignore next */ |
| 8395 | function customQuery(db, fun, opts) { |
| 8396 | return new Promise(function (resolve, reject) { |
| 8397 | db._query(fun, opts, function (err, res) { |
| 8398 | if (err) { |
| 8399 | return reject(err); |
| 8400 | } |
| 8401 | resolve(res); |
| 8402 | }); |
| 8403 | }); |
| 8404 | } |
| 8405 | |
| 8406 | // custom adapters can define their own api._viewCleanup |
| 8407 | // and override the default behavior |
no outgoing calls
no test coverage detected
searching dependent graphs…