I'm using node-mysql2. I want to override how JavaScript Date
objects are escaped.
By default, they are converted to 'YYYY-mm-dd HH:ii:ss'
strings, but I want to store them as integers instead.
How can I do this without reimplementing the entire queryFormat
function (which parses out ?
and :namedPlaceholders
)?