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
How could I create dynamic WHERE clause?
Database contains chunks of the query conditions (to create another query) described below:
"IN ('active', 'inactive')"
"LIKE 'Some conditi%'"
"'Red' AND 'Blue' AND 'Green' "
and I need to create such WHERE clauses dynamically... (
Probably it's time to think about some additional mysterious interface in sqlc
to make it possible execute queries like sqlx is doing right now?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Guys!
The question is:
How could I create dynamic WHERE clause?
Database contains chunks of the query conditions (to create another query) described below:
"IN ('active', 'inactive')"
"LIKE 'Some conditi%'"
"'Red' AND 'Blue' AND 'Green' "
and I need to create such WHERE clauses dynamically... (
Probably it's time to think about some additional mysterious interface in sqlc
to make it possible execute queries like sqlx is doing right now?
Any help would be appreciated.
Thanx!
Beta Was this translation helpful? Give feedback.
All reactions