Connection::$savepoints
Same name and namespace in other branches
- 11.x core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::savepoints
- 10 core/modules/pgsql/src/Driver/Database/pgsql/Connection.php \Drupal\pgsql\Driver\Database\pgsql\Connection::savepoints
An array of transaction savepoints.
The main use for this array is to store information about transaction savepoints opened to to mimic MySql's InnoDB functionality, which provides an inherent savepoint before any query in a transaction.
Type: array
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use TransactionManager to start a transaction then call ::commitOrRelease() or ::rollback() on it.
See also
::addSavepoint()
::releaseSavepoint()
::rollbackSavepoint()
https://www.drupal.org/node/3524461
File
-
core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Connection.php, line 96
Class
- Connection
- PostgreSQL implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\pgsql\Driver\Database\pgsqlCode
protected array $savepoints = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.