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

Function fetch

crates/database/src/auction.rs:88–91  ·  view source on GitHub ↗
(ex: &mut PgConnection, id: AuctionId)

Source from the content-addressed store, hash-verified

86}
87
88pub 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
93pub async fn fetch_multiple(
94 ex: &mut PgConnection,

Callers 7

postgres_roundtripFunction · 0.70
get_auctionMethod · 0.50
insert_order_hooksFunction · 0.50
read_last_block_from_dbFunction · 0.50
store_filtered_solutionsFunction · 0.50
last_event_blockMethod · 0.50

Calls

no outgoing calls

Tested by 2

store_filtered_solutionsFunction · 0.40