MediaWiki REL1_32
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 27 of file BatchRowWriter.php.

Constructor & Destructor Documentation

◆ __construct()

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 48 of file BatchRowWriter.php.

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

Member Function Documentation

◆ write()

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 60 of file BatchRowWriter.php.

References table.

Member Data Documentation

◆ $clusterName

BatchRowWriter::$clusterName
protected

Definition at line 41 of file BatchRowWriter.php.

Referenced by __construct().

◆ $db

BatchRowWriter::$db
protected

Definition at line 31 of file BatchRowWriter.php.

Referenced by __construct().

◆ $table

BatchRowWriter::$table
protected

Definition at line 36 of file BatchRowWriter.php.

Referenced by __construct().


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