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

Method fn

src/sequelize.js:1016–1018  ·  view source on GitHub ↗

* 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

1014 * });
1015 */
1016 static fn(fn, ...args) {
1017 return new Utils.Fn(fn, args);
1018 }
1019
1020 /**
1021 * 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
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
findAll.test.jsFile · 0.45
group.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected