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 your feature request related to a problem? Please describe.
I was looking for an easy way to do bulk SELECTs by passing in an array of values (in my case, integer primary keys). I came up with this query:
SELECT id, username, first_name, last_name, profile_photo_url
FROM UserProfiles
WHERE id IN (?);
Basically, I want impl<'q, T> Encode<'q, Mysql> for &[T] where T: Encode<'q, Mysql>
Describe alternatives you've considered
The alternative is to just make single queries in a loop. Another alternative is to build a dynamic query where I append OR id == ? to the where clause for every id I want to grab.
Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I was looking for an easy way to do bulk
SELECT
s by passing in an array of values (in my case, integer primary keys). I came up with this query:I went on to find that the Encode impl for
&[T]
was only present for PostgresDescribe the solution you'd like
Basically, I want
impl<'q, T> Encode<'q, Mysql> for &[T] where T: Encode<'q, Mysql>
Describe alternatives you've considered
The alternative is to just make single queries in a loop. Another alternative is to build a dynamic query where I append
OR id == ?
to thewhere
clause for every id I want to grab.Additional context
None
The text was updated successfully, but these errors were encountered: