()
| 451 | } |
| 452 | |
| 453 | getDatabaseMethod() { |
| 454 | if (this.isInsertQuery() || this.isUpdateQuery() || this.isUpsertQuery() || this.isBulkUpdateQuery() || this.sql.toLowerCase().includes('CREATE TEMPORARY TABLE'.toLowerCase()) || this.options.type === QueryTypes.BULKDELETE) { |
| 455 | return 'run'; |
| 456 | } |
| 457 | return 'all'; |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | module.exports = Query; |
no test coverage detected