MCPcopy
hub / github.com/sequelize/sequelize / update

Method update

src/dialects/abstract/query-interface.js:889–899  ·  view source on GitHub ↗
(instance, tableName, values, identifier, options)

Source from the content-addressed store, hash-verified

887 }
888
889 async update(instance, tableName, values, identifier, options) {
890 options = { ...options };
891 options.hasTrigger = instance && instance.constructor.options.hasTrigger;
892
893 const sql = this.queryGenerator.updateQuery(tableName, values, identifier, options, instance.constructor.rawAttributes);
894
895 options.type = QueryTypes.UPDATE;
896
897 options.instance = instance;
898 return await this.sequelize.query(sql, options);
899 }
900
901 /**
902 * Update multiple records of a table

Callers 4

updateAssociationsMethod · 0.45
setMethod · 0.45
addMethod · 0.45
removeMethod · 0.45

Calls 2

updateQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected