function executeBatch
executeBatch(statements: Array<{ sql: string; args: InValue[]; }>): Promise<void>

Execute multiple write statements in a single round-trip using Turso batch API. Statements are executed in order within a single transaction, making this ideal for cascading deletes and multi-step writes. Reduces N sequential HTTP round-trips to 1.

Parameters

statements: Array<{ sql: string; args: InValue[]; }>

Return Type

Promise<void>

Usage

import { executeBatch } from "doc.ts";