MediaWiki  1.28.0
BatchRowWriter Class Reference

Public Member Functions

 __construct (IDatabase $db, $table, $clusterName=false)
 
 write (array $updates)
 

Protected Attributes

 $clusterName
 
 $db
 
 $table
 

Detailed Description

Definition at line 25 of file BatchRowWriter.php.

Constructor & Destructor Documentation

BatchRowWriter::__construct ( IDatabase  $db,
  $table,
  $clusterName = false 
)
Parameters
IDatabase$dbThe database to write to
string$tableThe name of the table to update
string | bool$clusterNameA cluster name valid for use with LBFactory

Definition at line 46 of file BatchRowWriter.php.

References $clusterName, $db, $table, and table.

Member Function Documentation

BatchRowWriter::write ( array  $updates)
Parameters
array$updatesArray of arrays each containing two keys, 'primaryKey' and 'changes'. primaryKey must contain a map of column names to values sufficient to uniquely identify the row changes must contain a map of column names to update values to apply to the row.

Definition at line 58 of file BatchRowWriter.php.

References $lbFactory, as, and table.

Member Data Documentation

BatchRowWriter::$clusterName
protected

Definition at line 39 of file BatchRowWriter.php.

Referenced by __construct().

BatchRowWriter::$db
protected

Definition at line 29 of file BatchRowWriter.php.

Referenced by __construct().

BatchRowWriter::$table
protected

Definition at line 34 of file BatchRowWriter.php.

Referenced by __construct().


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