public Transaction::__construct(Connection $connection, $name = NULL)
File
core/lib/Drupal/Core/Database/Transaction.php, line 48
Class
Transaction A wrapper class for creating and managing database transactions.
Namespace
Drupal\Core\Database
Code
public function __construct(Connection $connection, $name = NULL) {
$this->connection = $connection;
// If there is no transaction depth, then no transaction has started. Name
// the transaction 'drupal_transaction'.
if (!$depth =