Skip to main content

execute_batch

Function execute_batch 

Source
pub async fn execute_batch(
    c: &mut Client,
    tenant: &str,
    space: &str,
    programs: &[Program],
) -> Result<Vec<Result<Response>>>
Expand description

Runs independent programs in one space as one transaction with one commit (API-008 §Batches). Each program runs under its own savepoint, so one that fails or rejects leaves the others alone; each gets its own result, in order. A program that hits a deadlock is run again.