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

Function insert_or_overwrite_interactions

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

Source from the content-addressed store, hash-verified

350
351#[instrument(skip_all)]
352pub async fn insert_or_overwrite_interactions(
353 ex: &mut PgConnection,
354 uid_and_interaction: &[(OrderUid, Interaction)],
355) -> Result<(), sqlx::Error> {
356 for (order_uid, interaction) in uid_and_interaction.iter() {
357 insert_or_overwrite_interaction(ex, interaction, order_uid).await?;
358 }
359 Ok(())
360}
361
362#[instrument(skip_all)]
363pub async fn insert_or_overwrite_interaction(

Callers 2

store_hooksFunction · 0.85

Calls 2

iterMethod · 0.45

Tested by

no test coverage detected