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

Method update

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

Source from the content-addressed store, hash-verified

864 }
865
866 async update(instance, tableName, values, identifier, options) {
867 options = { ...options };
868 options.hasTrigger = instance && instance.constructor.options.hasTrigger;
869
870 const sql = this.queryGenerator.updateQuery(tableName, values, identifier, options, instance.constructor.rawAttributes);
871
872 options.type = QueryTypes.UPDATE;
873
874 options.instance = instance;
875 return await this.sequelize.query(sql, options);
876 }
877
878 /**
879 * 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