Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > Postgres DB Driver > Functions
commit/1
Description
commit/1 is an Erlang function exported by "postgres" module.
Commits the last opened transaction.
References
•start_transaction/2
Parameters
Name
Type
Connection
integer()
Connection handle.
Result
Value or Type
{ok, Code}
Operation code
Code Sample
> postgres:commit(7689345632).