Skip to main content
Module

x/mysql/mod.ts>Client#transaction

MySQL driver for Deno
Extremely Popular
Latest
method Client.prototype.transaction
import { Client } from "https://deno.land/x/mysql@v2.12.1/mod.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>