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