Closed gilzarfati closed 3 years ago
Thanks for the feedback. The only goal of the example is just that: an example for how to use the custom format API, as the point is for folks to make their own. If you would like to make improvements to it, please make a pull request 👍 .
Hi, The custom format example given today: https://www.npmjs.com/package/mysql#custom-format
Only offers an alternative for the
?
place holder. I think it will be better to provide a more complete example that also supports the??
placeholder for escapeId().For example:
connection.query("SELECT * FROM ::table WHERE ::column = :tiltle", { table: "posts", column: "title", title: "Hello MySQL" });
Where
:
will be used for escape() as it is today and::
will be used for escapedId()This way the example will have the complete functionality of the default one.
Thanks