metaTransaction

See Also

setTransactionMode()

Syntax
string metaTransaction(
  string $transactionLevel,
  string $dataProvider
  )

Description

The method metaTransaction() returns a database specific isolation level statement for a supplied database and meta transaction level.

Parameters

$transactionLevel

There are 4 available options for this parameter:

$dataProvider

A string representing an ADOdb data provider, not necessarily the currently connected database.

Usage

/*
 * No valid connection is necessary 
 */
$t = $db->metaTransaction('serializable','oci8');
print $t;
/*
 * prints ISOLATION LEVEL SERIALIZABLE
*/

Resources

Microsoft SQL Server MySQL Postgresql Oracle