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

Method getInsertIdField

src/dialects/abstract/query.js:165–167  ·  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

163 * @private
164 */
165 getInsertIdField() {
166 return 'insertId';
167 }
168
169 getUniqueConstraintErrorMessage(field) {
170 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