不要怂,就是干,撸起袖子干!

Commit 705b7014 by Jan Aagaard Meier

Added @since tags to sequelize.and etc.

1 parent d7be58fd
Showing with 7 additions and 0 deletions
...@@ -666,6 +666,7 @@ module.exports = (function() { ...@@ -666,6 +666,7 @@ module.exports = (function() {
* @method fn * @method fn
* @param {String} fn The function you want to call * @param {String} fn The function you want to call
* @param {any} args All further arguments will be passed as arguments to the function * @param {any} args All further arguments will be passed as arguments to the function
* @since v2.0.0-dev3
* @return {Sequelize.fn} * @return {Sequelize.fn}
*/ */
Sequelize.fn = Sequelize.prototype.fn = function (fn) { Sequelize.fn = Sequelize.prototype.fn = function (fn) {
...@@ -678,6 +679,7 @@ module.exports = (function() { ...@@ -678,6 +679,7 @@ module.exports = (function() {
* *
* @method col * @method col
* @param {String} col The name of the column * @param {String} col The name of the column
* @since v2.0.0-dev3
* @return {Sequelize.col} * @return {Sequelize.col}
*/ */
Sequelize.col = Sequelize.prototype.col = function (col) { Sequelize.col = Sequelize.prototype.col = function (col) {
...@@ -691,6 +693,7 @@ module.exports = (function() { ...@@ -691,6 +693,7 @@ module.exports = (function() {
* @method cast * @method cast
* @param {any} val The value to cast * @param {any} val The value to cast
* @param {String} type The type to cast it to * @param {String} type The type to cast it to
* @since v2.0.0-dev3
* @return {Sequelize.cast} * @return {Sequelize.cast}
*/ */
Sequelize.cast = Sequelize.prototype.cast = function (val, type) { Sequelize.cast = Sequelize.prototype.cast = function (val, type) {
...@@ -703,6 +706,7 @@ module.exports = (function() { ...@@ -703,6 +706,7 @@ module.exports = (function() {
* @method literal * @method literal
* @param {any} val * @param {any} val
* @alias asIs * @alias asIs
* @since v2.0.0-dev3
* @return {Sequelize.literal} * @return {Sequelize.literal}
*/ */
Sequelize.literal = Sequelize.prototype.literal = function (val) { Sequelize.literal = Sequelize.prototype.literal = function (val) {
...@@ -719,6 +723,7 @@ module.exports = (function() { ...@@ -719,6 +723,7 @@ module.exports = (function() {
* *
* @method and * @method and
* @param {String|Object} args Each argument will be joined by AND * @param {String|Object} args Each argument will be joined by AND
* @since v2.0.0-dev3
* @return {Sequelize.and} * @return {Sequelize.and}
*/ */
Sequelize.and = Sequelize.prototype.and = function() { Sequelize.and = Sequelize.prototype.and = function() {
...@@ -731,6 +736,7 @@ module.exports = (function() { ...@@ -731,6 +736,7 @@ module.exports = (function() {
* *
* @method or * @method or
* @param {String|Object} args Each argument will be joined by OR * @param {String|Object} args Each argument will be joined by OR
* @since v2.0.0-dev3
* @return {Sequelize.or} * @return {Sequelize.or}
*/ */
Sequelize.or = Sequelize.prototype.or = function() { Sequelize.or = Sequelize.prototype.or = function() {
...@@ -745,6 +751,7 @@ module.exports = (function() { ...@@ -745,6 +751,7 @@ module.exports = (function() {
* @param {String|Object} condition The condition. Can be both a simply type, or a further condition (`.or`, `.and`, `.literal` etc.) * @param {String|Object} condition The condition. Can be both a simply type, or a further condition (`.or`, `.and`, `.literal` etc.)
* @method where * @method where
* @alias condition * @alias condition
* @since v2.0.0-dev3
* @return {Sequelize.where} * @return {Sequelize.where}
*/ */
Sequelize.where = Sequelize.prototype.where = function() { Sequelize.where = Sequelize.prototype.where = function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!