Connection.beginTransaction

bool beginTransaction(string name, gda.types.TransactionIsolation level)

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 gda.connection.Connection.supportsFeature function.

Parameters

namethe name of the transation to start, or null
levelthe requested transaction level (GDA_TRANSACTION_ISOLATION_UNKNOWN if not specified)

Returns

true if the transaction was started successfully, false

otherwise.

Throws