public function Connection::startTransaction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::startTransaction()
Returns a new DatabaseTransaction object on this connection.
Parameters
string $name: (optional) The name of the savepoint.
Return value
\Drupal\Core\Database\Transaction A Transaction object.
See also
\Drupal\Core\Database\Transaction
1 call to Connection::startTransaction()
- Connection::nextId in core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php - Retrieves an unique ID from a given sequence.
File
- core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1051 - Contains \Drupal\Core\Database\Connection.
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function startTransaction($name = '') {
$class = $this
->getDriverClass('Transaction');
return new $class($this, $name);
}