ANY in postgres #236
Answered
by
billy1624
phungleson
asked this question in
Q&A
-
Hi, I have been doing this to get rows in by ids in a vec. "id" = ANY ('{7e4c6b15-d849-418f-ab6e-0463e873c041,...}') I am trying to do something like this but it doesn't compile, as pub struct Any;
impl Iden for Any {
fn unquoted(&self, s: &mut dyn FmtWrite) {
write!(s, "ANY").unwrap();
}
}
.and_where(Expr::col(X::Id).eq(Func::cust(Any).arg(ids))) Maybe there is something else I can do instead? |
Beta Was this translation helpful? Give feedback.
Answered by
billy1624
Jan 14, 2022
Replies: 3 comments
-
Hey @phungleson, I think you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
billy1624
-
Yeah right, I am switching to |
Beta Was this translation helpful? Give feedback.
0 replies
-
No problems :P |
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
Hey @phungleson, I think you can use
IN
operator.