Public PostgresDb implementation. Provides high-level API for Postgres, handling connections, transactions, and result normalization. Note: For lastInsertId, use RETURNING clauses in your INSERT queries as Postgres does not provide it natively.
Disconnects from the database.
Executes a single SQL query. Joins active transaction if called within a transaction block.
Optional
Executes operations within a transaction using AsyncLocalStorage for context.
Public PostgresDb implementation. Provides high-level API for Postgres, handling connections, transactions, and result normalization. Note: For lastInsertId, use RETURNING clauses in your INSERT queries as Postgres does not provide it natively.