Avoid quotes with template strings #432
bjoernwuest
started this conversation in
General
Replies: 1 comment
-
Ok stupid, found answer myself. Use sql.identifier . @mmkal : do you mind to add an overload |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am building a dynamic data base schema and depend on using queries like
dbConn.query(sql`select * from ${tablename}`);
Yet, the sql escapes tablename within quotes, which makes the query fail. Is there some way how to prevent, except using sql.raw() function?
Beta Was this translation helpful? Give feedback.
All reactions