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
Currently we only have in_subquery to handle subqueries. It would be nice to also have gte_subquery, or more generally an Expr::subquery to express more operators on subqueries.
let query = Query::select().columns([Char::Character,Char::SizeW,Char::SizeH]).from(Char::Table).and_where(Expr::col(Char::SizeW).in_subquery(Query::select().expr(Expr::cust("3 + 2 * 2")).take())).to_owned();
let query = Query::select().columns([Char::Character,Char::SizeW,Char::SizeH]).from(Char::Table).and_where(Expr::col(Char::SizeW).gte_subquery(Query::select().column(Char::SizeW).from(Char::Table).and_where(Char::Id.eq("foo")).take())).to_owned();
let query = Query::select().columns([Char::Character,Char::SizeW,Char::SizeH]).from(Char::Table).and_where(Expr::col(Char::SizeW).gte(Expr::subquery(Query::select().column(Char::SizeW).from(Char::Table).and_where(Char::Id.eq("foo")).take()))).to_owned();
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
-
Currently we only have
in_subquery
to handle subqueries. It would be nice to also havegte_subquery
, or more generally anExpr::subquery
to express more operators on subqueries.Corresponding PostgreSQL :
Feature request
I don't think there's currently a solution to do the following :
Possible solutions
Beta Was this translation helpful? Give feedback.
All reactions