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

Function insert_or_overwrite_interactions

crates/database/src/orders.rs:310–318  ·  view source on GitHub ↗
(
    ex: &mut PgConnection,
    uid_and_interaction: &[(OrderUid, Interaction)],
)

Source from the content-addressed store, hash-verified

308
309#[instrument(skip_all)]
310pub async fn insert_or_overwrite_interactions(
311 ex: &mut PgConnection,
312 uid_and_interaction: &[(OrderUid, Interaction)],
313) -> Result<(), sqlx::Error> {
314 for (order_uid, interaction) in uid_and_interaction.iter() {
315 insert_or_overwrite_interaction(ex, interaction, order_uid).await?;
316 }
317 Ok(())
318}
319
320#[instrument(skip_all)]
321pub async fn insert_or_overwrite_interaction(

Callers 2

store_hooksFunction · 0.85

Calls 2

iterMethod · 0.45

Tested by

no test coverage detected