(instance, tableName, values, identifier, options)
| 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 |
no test coverage detected