Holds default generic constants that can be referenced. These are included in patio
Source
{
/**@lends patio.sql.Constants*/
/**
* Constant for CURRENT DATE
* @type patio.sql.Constant
*/
CURRENT_DATE: new Constant("CURRENT_DATE"),
/**
* Constant for CURRENT TIME
* @type patio.sql.Constant
*/
CURRENT_TIME: new Constant("CURRENT_TIME"),
/**
* Constant for CURRENT TIMESTAMP
* @type patio.sql.Constant
*/
CURRENT_TIMESTAMP: new Constant("CURRENT_TIMESTAMP"),
/**
* Constant for TRUE
* @type patio.sql.BooleanConstant
*/
SQLTRUE: new BooleanConstant(1),
/**
* Constant for TRUE
* @type patio.sql.BooleanConstant
*/
TRUE: new BooleanConstant(1),
/**
* Constant for FALSE.
* @type patio.sql.BooleanConstant
*/
SQLFALSE: new BooleanConstant(0),
/**
* Constant for FALSE
* @type patio.sql.BooleanConstant
*/
FALSE: new BooleanConstant(0),
/**
* Constant for NULL
* @type patio.sql.BooleanConstant
*/
NULL: new BooleanConstant(null),
/**
* Constant for NOT NULL
* @type patio.sql.NegativeBooleanConstant
*/
NOTNULL: new NegativeBooleanConstant(null)
}
| Property | Type | Default Value | Description |
| CURRENT_DATE | patio.sql.Constant | new Constant("CURRENT_DATE") | Constant for CURRENT DATE |
| CURRENT_TIME | patio.sql.Constant | new Constant("CURRENT_TIME") | Constant for CURRENT TIME |
| CURRENT_TIMESTAMP | patio.sql.Constant | new Constant("CURRENT_TIMESTAMP") | Constant for CURRENT TIMESTAMP |
| FALSE | patio.sql.BooleanConstant | new BooleanConstant(0) | Constant for FALSE |
| NOTNULL | patio.sql.NegativeBooleanConstant | new NegativeBooleanConstant(null) | Constant for NOT NULL |
| NULL | patio.sql.BooleanConstant | new BooleanConstant(null) | Constant for NULL |
| SQLFALSE | patio.sql.BooleanConstant | new BooleanConstant(0) | Constant for FALSE. |
| SQLTRUE | patio.sql.BooleanConstant | new BooleanConstant(1) | Constant for TRUE |
| TRUE | patio.sql.BooleanConstant | new BooleanConstant(1) | Constant for TRUE |