import { wrapTransaction } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.8/src/utils.ts";
Wraps a callback in a transaction.
Examples
Example 1
Example 1
const users = await wrapTransaction(async (trx) => {
return await trx.selectFrom("user").selectAll().execute();
});