Definition at line 26 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 47 of file BatchRowWriter.php.
References $clusterName, $db, $table, 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 59 of file BatchRowWriter.php.
References as, and table.
◆ $clusterName
BatchRowWriter::$clusterName |
|
protected |
◆ $db
◆ $table
The documentation for this class was generated from the following file: