public function DatabaseConnection::startTransaction in Drupal 7
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 - 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);
}