MCPcopy
hub / github.com/sequelize/sequelize / fn

Method fn

lib/sequelize.js:934–936  ·  lib/sequelize.js::Sequelize.fn

* Creates an object representing a database function. This can be used in search queries, both in where and order parts, and as default values in column definitions. * If you want to refer to columns in your function, you should use `sequelize.col`, so that the columns are properly interpreted as

(fn, ...args)

Source from the content-addressed store, hash-verified

932 * });
933 */
934 static fn(fn, ...args) {
935 return new Utils.Fn(fn, args);
936 }
937
938 /**
939 * Creates an object which represents a column in the DB, this allows referencing another column in your query. This is often useful in conjunction with `sequelize.fn`, since raw string arguments to fn will be escaped.

Callers 15

randomMethod · 0.95
where.tsFile · 0.45
sequelize.tsFile · 0.45
aggregateMethod · 0.45
utils.test.jsFile · 0.45
model.test.jsFile · 0.45
include.test.jsFile · 0.45
data-types.test.jsFile · 0.45
scope.test.jsFile · 0.45
upsert.test.jsFile · 0.45
create.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected