MCPcopy
hub / github.com/sequelize/sequelize / getDatabaseMethod

Method getDatabaseMethod

lib/dialects/sqlite/query.js:433–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 getDatabaseMethod() {
434 if (this.isInsertQuery() || this.isUpdateQuery() || this.isUpsertQuery() || this.isBulkUpdateQuery() || this.sql.toLowerCase().includes('CREATE TEMPORARY TABLE'.toLowerCase()) || this.options.type === QueryTypes.BULKDELETE) {
435 return 'run';
436 }
437 return 'all';
438 }
439}
440
441module.exports = Query;

Callers 1

runMethod · 0.95

Calls 4

isInsertQueryMethod · 0.80
isUpdateQueryMethod · 0.80
isUpsertQueryMethod · 0.80
isBulkUpdateQueryMethod · 0.80

Tested by

no test coverage detected