MCPcopy Index your code
hub / github.com/sequelize/sequelize / getDatabaseMethod

Method getDatabaseMethod

src/dialects/sqlite/query.js:453–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
461module.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