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
1 call to DatabaseConnection::startTransaction()
- DatabaseConnection_sqlite::nextId in includes/
database/ sqlite/ database.inc - Retrieves an unique id from a given sequence.
File
-
includes/
database/ database.inc, line 1085
Class
- DatabaseConnection
- Base Database API class.
Code
public function startTransaction($name = '') {
$class = $this->getDriverClass('DatabaseTransaction');
return new $class($this, $name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.