Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > Firebird DB Driver > Functions
close_transaction/1
Description
close_transaction/1 is an Erlang function exported by "firebird" module.
This function is closing a transaction handle created by create_transaction/5.
References
•connect/1
•create_transaction/5
Parameters
Name
Type
Transaction
integer()
Transaction handle.
Result
Value or Type
{ok, Code}
Operation code.
Code Sample
> {db_handle, Handle} = firebird:open(test_db).
> firebird:connect(Handle).
> {trans_handle, Transaction} = firebird:create_transaction(Handle).
> firebird:close_transaction(Transaction).