The default SQL template string sigil.
See SqlSigil for more documentation.
pg-promise compatible symbol for converting values to Postgres. If an object has this attribute, the results of this function will be be taken to be the object's database representation.
Converts a Date object to a Postgres-compatible date string in the local timezone. The resulting string is not wrapped or escaped.
the date to convert
Postgres-compatible date string
Converts a Date object to a Postgres-compatible date string in the UTC timezone. The resulting string is not wrapped or escaped.
the date to convert
Postgres-compatible date string in UTC timezone
Builds a SafeString object given an assumed-safe string.
The resulting object can also be toString
d to return its
raw contents.
the string to wrap
a SafeString object
Builds a sigil/templating object given the provided options
the sigil options
a template-string sigil function
Converts a given value to its Postgres literal representation, given the provided options.
the conversion options
the value to convert
the given value converted to a sql-safe string
Generated using TypeDoc
pg-promise compatible symbol for indicating that the results of a
toPostgres
method should be interpreted as raw/safe.