* Creates a 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.
* 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 columns and not a strings.
* If you want to refer to columns in your function, you should use `sequelize.col`, so that the columns are properly interpreted as columns and not a strings.
*
*
* Convert a user's username to upper case
* Convert a user's username to upper case
...
@@ -813,7 +813,7 @@ class Sequelize {
...
@@ -813,7 +813,7 @@ class Sequelize {
}
}
/**
/**
* Creates a object representing a column in the DB. This is often useful in conjunction with `sequelize.fn`, since raw string arguments to fn will be escaped.
* 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.
* @see {@link Sequelize#fn}
* @see {@link Sequelize#fn}
*
*
* @method col
* @method col
...
@@ -827,7 +827,7 @@ class Sequelize {
...
@@ -827,7 +827,7 @@ class Sequelize {
}
}
/**
/**
* Creates a object representing a call to the cast function.
* Creates an object representing a call to the cast function.
*
*
* @method cast
* @method cast
* @param {any} val The value to cast
* @param {any} val The value to cast
...
@@ -841,7 +841,7 @@ class Sequelize {
...
@@ -841,7 +841,7 @@ class Sequelize {
}
}
/**
/**
* Creates a object representing a literal, i.e. something that will not be escaped.
* Creates an object representing a literal, i.e. something that will not be escaped.