public static function TransactionSettings::GetDefaults in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 8 drivers/lib/Drupal/Driver/Database/sqlsrv/TransactionSettings.php \Drupal\Driver\Database\sqlsrv\TransactionSettings::GetDefaults()
Returns a default setting system-wide to make it compatible with Drupal's defaults. Cannot use snapshot isolation because it is not compatible with DDL operations and Drupal has nod distinction.
Return value
2 calls to TransactionSettings::GetDefaults()
- Connection::pushTransaction in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Connection.php - Summary of pushTransaction
- Connection::startTransaction in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Connection.php - Overriden to allow transaction settings.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ TransactionSettings.php, line 82
Class
- TransactionSettings
- Behaviour settings for a transaction.
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function GetDefaults() {
return new TransactionSettings(false, DatabaseTransactionScopeOption::Required(), DatabaseTransactionIsolationLevel::ReadCommitted());
}