MediaWiki REL1_33
Wikimedia\Rdbms\SavepointPostgres Class Reference

Manage savepoints within a transaction. More...

Collaboration diagram for Wikimedia\Rdbms\SavepointPostgres:

Public Member Functions

 __construct (DatabasePostgres $dbw, $id, LoggerInterface $logger)
 
 __destruct ()
 
 __toString ()
 
 commit ()
 
 release ()
 
 rollback ()
 
 savepoint ()
 

Protected Member Functions

 query ( $keyword, $msg_ok, $msg_failed)
 

Protected Attributes

DatabasePostgres $dbw
 Establish a savepoint within a transaction.
 
bool $didbegin
 
int $id
 
LoggerInterface $logger
 

Detailed Description

Manage savepoints within a transaction.

Since
1.19
Deprecated
since 1.31, use IDatabase::startAtomic() and such instead.

Definition at line 32 of file SavepointPostgres.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\SavepointPostgres::__construct ( DatabasePostgres $dbw,
$id,
LoggerInterface $logger )

◆ __destruct()

Wikimedia\Rdbms\SavepointPostgres::__destruct ( )

Definition at line 59 of file SavepointPostgres.php.

Member Function Documentation

◆ __toString()

Wikimedia\Rdbms\SavepointPostgres::__toString ( )

Definition at line 102 of file SavepointPostgres.php.

References Wikimedia\Rdbms\SavepointPostgres\$id.

◆ commit()

Wikimedia\Rdbms\SavepointPostgres::commit ( )

Definition at line 66 of file SavepointPostgres.php.

◆ query()

Wikimedia\Rdbms\SavepointPostgres::query ( $keyword,
$msg_ok,
$msg_failed )
protected

Definition at line 73 of file SavepointPostgres.php.

References and().

◆ release()

Wikimedia\Rdbms\SavepointPostgres::release ( )

Definition at line 88 of file SavepointPostgres.php.

References query.

◆ rollback()

Wikimedia\Rdbms\SavepointPostgres::rollback ( )

Definition at line 95 of file SavepointPostgres.php.

References query.

◆ savepoint()

Wikimedia\Rdbms\SavepointPostgres::savepoint ( )

Definition at line 81 of file SavepointPostgres.php.

References query.

Member Data Documentation

◆ $dbw

DatabasePostgres Wikimedia\Rdbms\SavepointPostgres::$dbw
protected

Establish a savepoint within a transaction.

Definition at line 34 of file SavepointPostgres.php.

Referenced by Wikimedia\Rdbms\SavepointPostgres\__construct().

◆ $didbegin

bool Wikimedia\Rdbms\SavepointPostgres::$didbegin
protected

Definition at line 40 of file SavepointPostgres.php.

◆ $id

int Wikimedia\Rdbms\SavepointPostgres::$id
protected

◆ $logger

LoggerInterface Wikimedia\Rdbms\SavepointPostgres::$logger
protected

Definition at line 36 of file SavepointPostgres.php.

Referenced by Wikimedia\Rdbms\SavepointPostgres\__construct().


The documentation for this class was generated from the following file: