Skip to main content

upsert_with_lineup

Function upsert_with_lineup 

Source
pub async fn upsert_with_lineup(
    conn: &mut SqliteConnection,
    slate_id: SlateId,
    team_id: FantasyTeamId,
    lineup: &Lineup,
) -> Result<EntryId, Error>
Expand description

Upsert the (slate, fantasy team) entry and replace its slots with the lineup’s nine. Runs on the caller’s write connection, inside its transaction.