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

Method _getDefaultTimestamp

lib/model.js:3260–3265  ·  lib/model.js::Model._getDefaultTimestamp
(attr)

Source from the content-addressed store, hash-verified

3258 }
3259
3260 static _getDefaultTimestamp(attr) {
3261 if (!!this.rawAttributes[attr] && !!this.rawAttributes[attr].defaultValue) {
3262 return Utils.toDefaultValue(this.rawAttributes[attr].defaultValue, this.sequelize.options.dialect);
3263 }
3264 return undefined;
3265 }
3266
3267 static _expandAttributes(options) {
3268 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