You are here

public function Connection::startTransaction in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::startTransaction()

Overriden to allow transaction settings.

Overrides Connection::startTransaction

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 814
Definition of Drupal\Driver\Database\sqlsrv\Connection

Class

Connection
Temporary tables: temporary table support is done by means of global temporary tables (#) to avoid the use of DIRECT QUERIES. You can enable and disable the use of direct queries with $this->driver_settings->defaultDirectQuery =…

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function startTransaction($name = '', DatabaseTransactionSettings $settings = NULL) {
  if ($settings == NULL) {
    $settings = DatabaseTransactionSettings::GetDefaults();
  }
  return new Transaction($this, $name, $settings);
}