MediaWiki  1.23.8
PostgresTransactionState Class Reference

Used to debug transaction processing Only used if $wgDebugDBTransactions is true. More...

Public Member Functions

 __construct ( $conn)
 
 check ()
 
 update ()
 

Protected Member Functions

 describe_changed ( $status, $desc_table)
 
 log_changed ( $old, $new, $watched)
 

Private Attributes

array $mCurrentState
 
array $mNewState
 

Static Private Attributes

static $WATCHED
 

Detailed Description

Used to debug transaction processing Only used if $wgDebugDBTransactions is true.

Since
1.19

Definition at line 115 of file DatabasePostgres.php.

Constructor & Destructor Documentation

◆ __construct()

PostgresTransactionState::__construct (   $conn)

Definition at line 140 of file DatabasePostgres.php.

Member Function Documentation

◆ check()

PostgresTransactionState::check ( )

Definition at line 153 of file DatabasePostgres.php.

◆ describe_changed()

PostgresTransactionState::describe_changed (   $status,
  $desc_table 
)
protected

Definition at line 172 of file DatabasePostgres.php.

◆ log_changed()

PostgresTransactionState::log_changed (   $old,
  $new,
  $watched 
)
protected

Definition at line 180 of file DatabasePostgres.php.

◆ update()

PostgresTransactionState::update ( )

Definition at line 146 of file DatabasePostgres.php.

Member Data Documentation

◆ $mCurrentState

array PostgresTransactionState::$mCurrentState
private

Definition at line 138 of file DatabasePostgres.php.

◆ $mNewState

array PostgresTransactionState::$mNewState
private

Definition at line 136 of file DatabasePostgres.php.

◆ $WATCHED

PostgresTransactionState::$WATCHED
staticprivate
Initial value:
"desc" => "%s: Connection state changed from %s -> %s\n",
"states" => array(
PGSQL_CONNECTION_OK => "OK",
PGSQL_CONNECTION_BAD => "BAD"
)
),
"desc" => "%s: Transaction state changed from %s -> %s\n",
"states" => array(
PGSQL_TRANSACTION_IDLE => "IDLE",
PGSQL_TRANSACTION_ACTIVE => "ACTIVE",
PGSQL_TRANSACTION_INTRANS => "TRANS",
PGSQL_TRANSACTION_INERROR => "ERROR",
PGSQL_TRANSACTION_UNKNOWN => "UNKNOWN"
)
)
)

Definition at line 116 of file DatabasePostgres.php.


The documentation for this class was generated from the following file:
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.