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 (%GDA_TRANSACTION_ISOLATION_UNKNOWN if not specified)

Returns:

true if the transaction was started successfully, false otherwise.