A function to be called to convert dates to their SQL equivalent.
If this function returns a normal value, that value will be
escaped according to usual rules. Meaning, e.g., that you can
return a string, and that string will be appropriately escaped.
However, if you return an object with toPostgres and rawType
attributes, those attributes will be respected in the usual way.
A function to be called to convert dates to their SQL equivalent. If this function returns a normal value, that value will be escaped according to usual rules. Meaning, e.g., that you can return a string, and that string will be appropriately escaped.
However, if you return an object with
toPostgres
andrawType
attributes, those attributes will be respected in the usual way.