Skip to main content

upsert_from_snapshot

Function upsert_from_snapshot 

Source
pub async fn upsert_from_snapshot(
    conn: &mut PgConnection,
    snapshot: &GlossaryTermSnapshot,
) -> ModelResult<()>
Expand description

Writes the snapshot to the term, creating it with the snapshot’s id if it does not exist and bringing it back if it is deleted.