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
File
- core/
includes/ database/ database.inc, line 1071 - 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);
}