MCPcopy
hub / github.com/sequelize/sequelize / cast

Method cast

src/sequelize.js:1046–1048  ·  view source on GitHub ↗

* Creates an object representing a call to the cast function. * * @param {any} val The value to cast * @param {string} type The type to cast it to * @since v2.0.0-dev3 * @memberof Sequelize * * @returns {Sequelize.cast}

(val, type)

Source from the content-addressed store, hash-verified

1044 * @returns {Sequelize.cast}
1045 */
1046 static cast(val, type) {
1047 return new Utils.Cast(val, type);
1048 }
1049
1050 /**
1051 * Creates an object representing a literal, i.e. something that will not be escaped.

Callers 6

utils.test.jsFile · 0.80
model.test.jsFile · 0.80
create.test.jsFile · 0.80
sequelize.tsFile · 0.80
utils.test.jsFile · 0.80
where.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected