Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/nessie/deps.ts>SQLiteClient#transaction

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Go to Latest
method SQLiteClient.prototype.transaction
import { SQLiteClient } from "https://deno.land/x/nessie@2.0.7/deps.ts";

Run a function within the context of a database transaction. If the function throws an error, the transaction is rolled back. Otherwise, the transaction is committed when the function returns.

Calls to transaction may be nested. Nested transactions behave like SQLite save points.

Parameters

closure: () => V