0.1.0 • Published 5 years ago
@norvento/postgres-db v0.1.0
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
0.1.0
5 years ago