(ex: &mut PgConnection, id: AuctionId)
| 86 | } |
| 87 | |
| 88 | pub async fn fetch(ex: &mut PgConnection, id: AuctionId) -> Result<Option<Auction>, sqlx::Error> { |
| 89 | const QUERY: &str = r#"SELECT * FROM competition_auctions WHERE id = $1;"#; |
| 90 | sqlx::query_as(QUERY).bind(id).fetch_optional(ex).await |
| 91 | } |
| 92 | |
| 93 | pub async fn fetch_multiple( |
| 94 | ex: &mut PgConnection, |
no outgoing calls