You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any plan to add query building functionality to this whereby I could build a query dynamically bit by bit before executing it? Or should I use another library for that sort of thing and call sql.unsafe(queryBuilderResult)?
And a related question, is it possible to build a dynamic query in a manner similar to this?
constquery=sql`SELECT * FROM my_table ${order&&sql`ORDER BY ${order}`}`;
I know code snippet is nonsense, but hopefully you get the idea.
The text was updated successfully, but these errors were encountered:
Yeah, I'd like to improve on the helpers already there now so you can achieve exactly something like what you're requesting. I've got a few other things I'll finish first, but it shouldn't be long :)
Is there any plan to add query building functionality to this whereby I could build a query dynamically bit by bit before executing it? Or should I use another library for that sort of thing and call
sql.unsafe(queryBuilderResult)
?And a related question, is it possible to build a dynamic query in a manner similar to this?
I know code snippet is nonsense, but hopefully you get the idea.
The text was updated successfully, but these errors were encountered: