(
ex: &mut PgConnection,
ids: &[AuctionId],
)
| 101 | } |
| 102 | |
| 103 | pub async fn fetch_multiple( |
| 104 | ex: &mut PgConnection, |
| 105 | ids: &[AuctionId], |
| 106 | ) -> Result<Vec<Auction>, sqlx::Error> { |
| 107 | const QUERY: &str = r#"SELECT * FROM competition_auctions WHERE id = ANY($1) ORDER BY id"#; |
| 108 | sqlx::query_as(QUERY).bind(ids).fetch_all(ex).await |
| 109 | } |
| 110 | |
| 111 | pub async fn get_order_uids( |
| 112 | ex: &mut PgConnection, |
no test coverage detected