Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > Firebird DB Driver > Functions
create_transaction/5
Description
create_transaction/5 is an Erlang function exported by "firebird" module.
This function creates a new DB transaction.
References
•Headers
•connect/1
Parameters
Name
Type
Handle
integer()
Database handle.
Access
Optional. Defaults to ?FIREBIRD_DEFAULT_TRANS_ACCESS
Isolation
Optional. Defaults to ?FIREBIRD_DEFAULT_TRANS_ISOLATION
Lock
Optional. Defaults to ?FIREBIRD_DEFAULT_TRANS_LOCK
Flag
Optional. Defaults to ?FIREBIRD_DEFAULT_TRANS_FLAG
Result
Value or Type
{trans_handle, Transaction}
On success return a new Transaction handle.
Code Sample
> {db_handle, Handle} = firebird:open(test_db).
> firebird:connect(Handle).
> {trans_handle, Transaction} = firebird:create_transaction(Handle).