Skip to main content

upsert_materialized_order_state

Function upsert_materialized_order_state 

Source
pub fn upsert_materialized_order_state(
    conn: &mut PgConnection,
    materialized_order_info: &NewOrderInfo,
) -> QueryResult<usize>
Expand description

Upsert the materialized order_infos row with the latest status and filled_size. Skips the update if the existing row is already terminal or has a newer last_materialized_order_update_id.