MCPcopy
hub / github.com/sequelize/sequelize / getInsertIdField

Method getInsertIdField

lib/dialects/abstract/query.js:141–143  ·  view source on GitHub ↗

* Get the attributes of an insert query, which contains the just inserted id. * * @returns {string} The field name. * @private

()

Source from the content-addressed store, hash-verified

139 * @private
140 */
141 getInsertIdField() {
142 return 'insertId';
143 }
144
145 getUniqueConstraintErrorMessage(field) {
146 let message = field ? `${field} must be unique` : 'Must be unique';

Callers 2

isInsertQueryMethod · 0.95
handleInsertQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected