Module

x/nessie/deps.ts>MySQLClient#transaction

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

Execute a transaction process, and the transaction successfully returns the return value of the transaction process

Type Parameters

optional
T = any

Parameters

processor: TransactionProcessor<T>

transation processor

Returns

Promise<T>