feat: add transaction support to postgres provider
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user