begin_transaction


Description:

public bool begin_transaction (string? name, TransactionIsolation level) throws Error

Starts a transaction on the data source, identified by the name parameter.

Before starting a transaction, you can check whether the underlying provider does support transactions or not by using the supports_feature function.

Parameters:

this

a Connection object.

name

the name of the transation to start, or null

level

the requested transaction level (use gda_transaction_isolation_server_default to apply the server default)

Returns:

true if the transaction was started successfully with the corresponding isolation level, false otherwise.