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