Definition at line 27 of file BatchRowWriter.php.
◆ __construct()
BatchRowWriter::__construct |
( |
IDatabase | $db, |
|
|
| $table, |
|
|
| $clusterName = false ) |
- Parameters
-
IDatabase | $db | The database to write to |
string | $table | The name of the table to update |
string | bool | $clusterName | A cluster name valid for use with LBFactory |
Definition at line 48 of file BatchRowWriter.php.
References $clusterName, $db, and $table.
◆ write()
BatchRowWriter::write |
( |
array | $updates | ) |
|
- Parameters
-
array | $updates | Array 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.
◆ $clusterName
BatchRowWriter::$clusterName |
|
protected |
◆ $db
◆ $table
The documentation for this class was generated from the following file: