feat: add transaction support to postgres provider

This commit is contained in:
2025-10-05 21:51:04 +00:00
parent d55573b2db
commit 737d22ecf5
6 changed files with 97 additions and 68 deletions

View File

@@ -1,4 +1,4 @@
import postgres, { type Sql } from "postgres";
import postgres, { type Sql, TransactionSql } from "postgres";
import { PostgresConnection } from "./connection.ts";
@@ -34,3 +34,7 @@ export class PostgresDatabase {
export type DatabaseAccessor = {
sql: Sql;
};
export type Options = {
tx?: TransactionSql;
};