Transaction
import { Transaction } from "https://raw.githubusercontent.com/jeremyBanks/database/0.1.0-dev/sql/sql.ts";
§Type Parameters
§Constructors
§Properties
§Methods
Closes the transaction and any open nested transactions with changes committed.
May throw DatabaseConnectivityError
or DatabaseEngineError
.
Prepares a SQL query for execution in this transaction.
May throw DatabaseConnectivityError
or DatabaseEngineError
.
Closes the transaction and any open nested transactions with changes rolled back.
May throw DatabaseConnectivityError
or DatabaseEngineError
.
Starts a nested transaction within this transaction. If a nested transaction is already in progress, this will block until it is closed. While a nested transaction is in progress, queries should be executed through the inner-most active transaction, not the parent transaction, or else they will block until the child transaction is closed.
May throw DatabaseConnectivityError or DatabaseEngineError.