@norvento/db.postgres
v0.2.0
Published
postgres-db
Downloads
4
Keywords
Readme
Norvento postgres db
Doc
Table of Contents
PostgresDB
PostgresDB
Parameters
dbconfig
{host: string, port: number, user: string, password: string, database: string, max: number, idleTimeoutMillis: number} config
execute
Executes the provided sql
Parameters
sql
string The sql to execute
execute_singlequery
Parameters
sql
any
createTransaction
Creates a new transaction
Transaction
Transaction
Parameters
db
PostgresDB
begin
Starts the transaction
execute
Starts the transaction
Parameters
sql
string The sql to execute
commit
Commit the transaction
rollback
Rollbacks the transaction