Represents constants or psuedo-constants (e.g.'CURRENT_DATE) in SQL.
Extends Instance PropertiesProperty | Type | Default Value | Description |
constant | String | READ ONLY the contant. | |
function (constant){ this.__constant = constant; }
Converts the patio.sql.Constant to a string.
Argumentsdataset used to created the SQL fragment, if the dataset is ommited then the default patio.Dataset implementation is used.
String the SQL version of the patio.sql.Constant.
function (ds){ !Dataset && (Dataset = require("./dataset")); ds = ds || new Dataset(); return ds.constantSql(this.__constant); }