Skip navigation
Help

DatabaseConnection::startTransaction

7 database.inc public DatabaseConnection::startTransaction($name = '')

Returns a new DatabaseTransaction object on this connection.

Parameters

$name: Optional name of the savepoint.

See also

DatabaseTransaction

1 call to DatabaseConnection::startTransaction()

File

drupal/includes/database/database.inc, line 993
Core systems for the database layer.

Code

public function startTransaction($name = '') {
  $class = $this->getDriverClass('DatabaseTransaction');
  return new $class($this, $name);
}