function Connection::inTransaction
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::inTransaction()
- 8.9.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::inTransaction()
- 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::inTransaction()
Determines if there is an active transaction open.
Return value
bool TRUE if we're currently in a transaction, FALSE otherwise.
4 calls to Connection::inTransaction()
- Connection::addSavepoint in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Add a new savepoint with a unique name.
- Connection::query in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Executes a query string against the database.
- Connection::releaseSavepoint in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Release a savepoint by name.
- Connection::rollbackSavepoint in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php - Rollback a savepoint by name if it exists.
File
-
core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1123
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function inTransaction() {
return $this->transactionManager()
->inTransaction();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.