pg_async
|
All the work with the database is wrapped into transactions. A transaction MUST be explicitly committed or it well be rolled back when the transaction handle object goes out of scope.
If a transaction is rolled back, the error callback is called in any case, either the transaction was rolled back explicitly by the user or if it was rolled back as the result of abandoned transaction object.