MCPcopy Create free account
hub / github.com/cowprotocol/services / fetch_multiple

Function fetch_multiple

crates/database/src/auction.rs:103–109  ·  view source on GitHub ↗
(
    ex: &mut PgConnection,
    ids: &[AuctionId],
)

Source from the content-addressed store, hash-verified

101}
102
103pub 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
111pub async fn get_order_uids(
112 ex: &mut PgConnection,

Callers 1

fetch_debug_reportMethod · 0.85

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected