MediaWiki REL1_28
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.
 
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

◆ __construct()

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().

◆ __destruct()

SavepointPostgres::__destruct ( )

Definition at line 55 of file SavepointPostgres.php.

Member Function Documentation

◆ __toString()

SavepointPostgres::__toString ( )

Definition at line 98 of file SavepointPostgres.php.

References $id.

◆ commit()

SavepointPostgres::commit ( )

Definition at line 62 of file SavepointPostgres.php.

◆ query()

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

Definition at line 69 of file SavepointPostgres.php.

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

◆ release()

SavepointPostgres::release ( )

Definition at line 84 of file SavepointPostgres.php.

References query().

◆ rollback()

SavepointPostgres::rollback ( )

Definition at line 91 of file SavepointPostgres.php.

References query().

◆ savepoint()

SavepointPostgres::savepoint ( )

Definition at line 77 of file SavepointPostgres.php.

References query().

Member Data Documentation

◆ $dbw

DatabasePostgres SavepointPostgres::$dbw
protected

Establish a savepoint within a transaction.

Definition at line 30 of file SavepointPostgres.php.

Referenced by __construct().

◆ $didbegin

bool SavepointPostgres::$didbegin
protected

Definition at line 36 of file SavepointPostgres.php.

◆ $id

int SavepointPostgres::$id
protected

Definition at line 34 of file SavepointPostgres.php.

Referenced by __construct(), and __toString().

◆ $logger

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: