src/MysqliLib.php
public static function generateBatchReplaceQuery(array $rows, $tableName, \mysqli $mysqli)
    {
        $query = "REPLACE " . self::generateBatchQueryCore($rows, $tableName, $mysqli);
        return $query;
    }
public static function generateBatchReplaceQuery(array $rows, $tableName, \mysqli $mysqli)
    {
        $query = "REPLACE " . self::generateBatchQueryCore($rows, $tableName, $mysqli);
        return $query;
    }
public static function generateBatchReplaceQuery ( array $ rows , $ tableName , \ mysqli $ mysqli ) { $ query = "REPLACE " . self :: generateBatchQueryCore ( $ rows , $ tableName , $ mysqli ) ; return $ query ; }
Generates a single REPLACE query that can replace any number of rows. Replacements will
perform an insert except if a row with the same primary key or unique index already exists,
in which case an UPDATE will take place.
@param array $rows - the data we wish to insert/replace into the database.
@param string tableName - the name of the table being manipulated.
@param \mysqli $mysqli - the database connection that would be used for the query.
@return string - the generated query.
Generates a single REPLACE query that can replace any number of rows . Replacements will perform an insert except if a row with the same primary key or unique index already exists in which case an UPDATE will take place .