savepoint

Bun

Symbol

TransactionSQL.savepoint

savepoint(name: string, fn: SQLSavepointContextCallback): Promise<any>

Creates a savepoint within the current transaction

Referenced types

type SQLSavepointContextCallback = (sql: SavepointSQL) => Promise<any> | SQLQuery[]

Callback function type for savepoint contexts