MCPcopy
hub / github.com/sequelize/sequelize / _getDefaultTimestamp

Method _getDefaultTimestamp

src/model.js:3386–3391  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

3384 }
3385
3386 static _getDefaultTimestamp(attr) {
3387 if (!!this.rawAttributes[attr] && !!this.rawAttributes[attr].defaultValue) {
3388 return Utils.toDefaultValue(this.rawAttributes[attr].defaultValue, this.sequelize.options.dialect);
3389 }
3390 return undefined;
3391 }
3392
3393 static _expandAttributes(options) {
3394 if (!_.isPlainObject(options.attributes)) {

Callers 4

upsertMethod · 0.95
updateMethod · 0.95
incrementMethod · 0.95
saveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected