Skip to main content

save_checkpoint

Function save_checkpoint 

Source
pub async fn save_checkpoint(
    db: &DatabaseConnection,
    key: &str,
    ts: DateTime<Utc>,
) -> Result<(), DatabaseError>
Expand description

Persist ts under key in the graph_sync_checkpoints table. Inserts a new row or updates the existing one (upsert on the primary key).