replace() public method
Creates an REPLACE SQL statement.
For example,
$sql = $queryBuilder->replace('idx_user', [
    'name' => 'Sam',
    'age' => 30,
    'id' => 10,
], $params);
 The method will properly escape the index and column names.
| public string replace ( $index, $columns, &$params ) | ||
|---|---|---|
| $index | string | 
 The index that new rows will be replaced.  |  
| $columns | array | 
 The column data (name => value) to be replaced in the index.  |  
| $params | array | 
 The binding parameters that will be generated by this method. They should be bound to the Sphinx command later.  |  
| return | string | 
 The INSERT SQL  |  
Please login to continue.