MediaWiki  1.28.1
SavepointPostgres Class Reference

Manage savepoints within a transaction. More...

Collaboration diagram for 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 28 of file SavepointPostgres.php.

Constructor & Destructor Documentation

SavepointPostgres::__construct ( DatabasePostgres  $dbw,
  $id,
LoggerInterface  $logger 
)
Parameters
DatabasePostgres$dbw
int$id
LoggerInterface$logger

Definition at line 43 of file SavepointPostgres.php.

References $dbw, $id, $logger, Database\begin(), and Database\trxLevel().

SavepointPostgres::__destruct ( )

Definition at line 55 of file SavepointPostgres.php.

Member Function Documentation

SavepointPostgres::__toString ( )

Definition at line 98 of file SavepointPostgres.php.

References $id.

SavepointPostgres::commit ( )

Definition at line 62 of file SavepointPostgres.php.

SavepointPostgres::query (   $keyword,
  $msg_ok,
  $msg_failed 
)
protected

Definition at line 69 of file SavepointPostgres.php.

References false.

Referenced by release(), rollback(), and savepoint().

SavepointPostgres::release ( )

Definition at line 84 of file SavepointPostgres.php.

References query().

SavepointPostgres::rollback ( )

Definition at line 91 of file SavepointPostgres.php.

References query().

SavepointPostgres::savepoint ( )

Definition at line 77 of file SavepointPostgres.php.

References query().

Member Data Documentation

DatabasePostgres SavepointPostgres::$dbw
protected

Establish a savepoint within a transaction.

Definition at line 30 of file SavepointPostgres.php.

Referenced by __construct().

bool SavepointPostgres::$didbegin
protected

Definition at line 36 of file SavepointPostgres.php.

int SavepointPostgres::$id
protected

Definition at line 34 of file SavepointPostgres.php.

Referenced by __construct(), and __toString().

LoggerInterface SavepointPostgres::$logger
protected

Definition at line 32 of file SavepointPostgres.php.

Referenced by __construct().


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