(executionError, results)
| 232 | const query = this; |
| 233 | // cannot use arrow function here because the function is bound to the statement |
| 234 | function afterExecute(executionError, results) { |
| 235 | try { |
| 236 | complete(); |
| 237 | // `this` is passed from sqlite, we have no control over this. |
| 238 | // eslint-disable-next-line no-invalid-this |
| 239 | resolve(query._handleQueryResponse(this, columnTypes, executionError, results, errForStack.stack)); |
| 240 | return; |
| 241 | } catch (error) { |
| 242 | reject(error); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | if (!parameters) parameters = []; |
| 247 | conn[method](sql, parameters, afterExecute); |
nothing calls this directly
no test coverage detected