Represents a literal string with placeholders and arguments. This is necessary to ensure delayed literalization of the arguments required for the prepared statement support and for database-specific literalization.
Extends Instance PropertiesProperty | Type | Default Value | Description |
args | Array | READ ONLY array of arguments that will be literalized using patio.Dataset#literal, and replaced in the string. | |
parens | String | READ ONLY set to true to wrap the string in parens. | |
str | String | READ ONLY the string that contains placeholders. | |
function (str,args,parens){ parens = parens || false; var v; this.__str = str; this.__args = isArray(args) && args.length === 1 && isHash((v = args[0])) ? v : args; this.__parens = parens; }
Converts the patio.sql.PlaceHolderLiteralString 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.PlaceHolderLiteralString.
function (ds){ !Dataset && (Dataset = require("./dataset")); ds = ds || new Dataset(); return ds.placeholderLiteralStringSql(this); }