type alias TxScope

The slice of an open write transaction handed to a withTransaction callback: run statements singly or as one batch; commit/rollback are managed for you.

Properties

batch: (statements: InStatement[]) => Promise<ResultSet[]>
execute: (stmt: InStatement) => Promise<ResultSet>

Usage

import { type TxScope } from "docs/database.ts";