public function DatabaseConnection::startTransaction

Returns a new DatabaseTransaction object on this connection.

Parameters

$name: Optional name of the savepoint.

Return value

DatabaseTransaction A DatabaseTransaction object.

See also

DatabaseTransaction

1 call to DatabaseConnection::startTransaction()
DatabaseConnection_sqlite::nextId in drupal/includes/database/sqlite/database.inc
Retrieves an unique id from a given sequence.

File

drupal/includes/database/database.inc, line 1038
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);
}