Skip to main content
Module

x/denodb/deps.ts>MySQLClient#transaction

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method MySQLClient.prototype.transaction
import { MySQLClient } from "https://deno.land/x/denodb@v1.4.0/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>