Add option to add column/table name as a parameter
orlavy-bigabid opened this issue · 1 comments
orlavy-bigabid commented
I think there should be an option to insert the column name as a dynamic parameter in queries like
squel.select()
.from('table')
.where('? > ?', 'price', 5)
.toString();
In the current state, the result is "SELECT * FROM table WHERE ('price' > 5)"
And as you can see, the column name is inside quotes (where it should be left "as is")
For reference, the "mysql" package has an option to use '??' (instead of a single '?') as "placeholders for identifiers you would like to have escaped" As indicated here
jonahbron commented
You might be able to use squel.str()
for this.