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