Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseConnection::supportsTransactions

Determines if this driver supports transactions.

Return value

TRUE if this connection supports transactions, FALSE otherwise.

6 calls to DatabaseConnection::supportsTransactions()
DatabaseConnection::popTransaction in includes/database/database.inc
Decreases the depth of transaction nesting.
DatabaseConnection::pushTransaction in includes/database/database.inc
Increases the depth of transaction nesting.
DatabaseConnection::rollback in includes/database/database.inc
Rolls back the transaction entirely or to a named savepoint.
DatabaseConnection_sqlite::popTransaction in includes/database/sqlite/database.inc
Decreases the depth of transaction nesting.
DatabaseConnection_sqlite::pushTransaction in includes/database/sqlite/database.inc
Increases the depth of transaction nesting.

... See full list

File

includes/database/database.inc, line 1311

Class

DatabaseConnection
Base Database API class.

Code

public function supportsTransactions() {
 return $this->transactionSupport ;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.