MediaWiki  1.29.1
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 26 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 47 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 59 of file BatchRowWriter.php.

References $lbFactory, as, and table.

Member Data Documentation

◆ $clusterName

BatchRowWriter::$clusterName
protected

Definition at line 40 of file BatchRowWriter.php.

Referenced by __construct().

◆ $db

BatchRowWriter::$db
protected

Definition at line 30 of file BatchRowWriter.php.

Referenced by __construct().

◆ $table

BatchRowWriter::$table
protected

Definition at line 35 of file BatchRowWriter.php.

Referenced by __construct().


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