We use postgres and we have a bunch of queries in which we use the ::TEXT or ::INT syntax. Escaping them isn't convenient, and we just wouldn't have to if we were able to chose another character for the named params (like "@").
Letting users chose their own character prefix for named variable would be neat.
It could very easily be done on the package level by using a global variable, or it could be set on the connection level and then passed all the way down to the compileNamedQuery function.
What do you think?
We use postgres and we have a bunch of queries in which we use the ::TEXT or ::INT syntax. Escaping them isn't convenient, and we just wouldn't have to if we were able to chose another character for the named params (like "@").
Letting users chose their own character prefix for named variable would be neat.
It could very easily be done on the package level by using a global variable, or it could be set on the connection level and then passed all the way down to the compileNamedQuery function.
What do you think?