Connection.beginTransaction

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.

class Connection
bool
beginTransaction

Parameters

name string

the name of the transation to start, or null

level gda.types.TransactionIsolation

the requested transaction level (GDA_TRANSACTION_ISOLATION_UNKNOWN if not specified)

Return Value

Type: bool

true if the transaction was started successfully, false otherwise.

Throws