MediaWiki  1.30.0
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. More...
 
bool $didbegin
 
int $id
 
LoggerInterface $logger
 

Detailed Description

Manage savepoints within a transaction.

Since
1.19

Definition at line 31 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 58 of file SavepointPostgres.php.

Member Function Documentation

◆ __toString()

Wikimedia\Rdbms\SavepointPostgres::__toString ( )

Definition at line 101 of file SavepointPostgres.php.

References Wikimedia\Rdbms\SavepointPostgres\$id.

◆ commit()

Wikimedia\Rdbms\SavepointPostgres::commit ( )

Definition at line 65 of file SavepointPostgres.php.

◆ query()

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

◆ release()

Wikimedia\Rdbms\SavepointPostgres::release ( )

Definition at line 87 of file SavepointPostgres.php.

References Wikimedia\Rdbms\SavepointPostgres\query().

◆ rollback()

Wikimedia\Rdbms\SavepointPostgres::rollback ( )

Definition at line 94 of file SavepointPostgres.php.

References Wikimedia\Rdbms\SavepointPostgres\query().

◆ savepoint()

Wikimedia\Rdbms\SavepointPostgres::savepoint ( )

Definition at line 80 of file SavepointPostgres.php.

References Wikimedia\Rdbms\SavepointPostgres\query().

Member Data Documentation

◆ $dbw

DatabasePostgres Wikimedia\Rdbms\SavepointPostgres::$dbw
protected

Establish a savepoint within a transaction.

Definition at line 33 of file SavepointPostgres.php.

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

◆ $didbegin

bool Wikimedia\Rdbms\SavepointPostgres::$didbegin
protected

Definition at line 39 of file SavepointPostgres.php.

◆ $id

int Wikimedia\Rdbms\SavepointPostgres::$id
protected

◆ $logger

LoggerInterface Wikimedia\Rdbms\SavepointPostgres::$logger
protected

Definition at line 35 of file SavepointPostgres.php.

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


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