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

Returns a new DatabaseTransaction object on this connection.

Parameters

$name: Optional name of the savepoint.

Return value

DatabaseTransaction: A DatabaseTransaction object.

See also

DatabaseTransaction

File

core/includes/database/database.inc, line 1033
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

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