It would be awesome if we could configure what character acts as the identifiying char for the named attribute.
So instead of using : allow the usage of e.g. @
SELECT * FROM something WHERE id = :id
SELECT * FROM something WHERE id = @id
I want to utilize prepared statements in https://github.com/sidorares/node-mysql2 via .execute in combination with named parameters. Currently all of our code bases uses @ parameters in combination with .query and a custom queryFormat function that replaces these with the actual values.
It would be awesome if we could configure what character acts as the identifiying char for the named attribute.
So instead of using
:allow the usage of e.g.@SELECT * FROM something WHERE id = :idSELECT * FROM something WHERE id = @idI want to utilize prepared statements in https://github.com/sidorares/node-mysql2 via
.executein combination with named parameters. Currently all of our code bases uses@parameters in combination with.queryand a customqueryFormatfunction that replaces these with the actual values.