src/MysqliLib.php
public static function generateBatchInsertQuery(array $rows, $tableName, \mysqli $mysqli)
    {
        $query = "INSERT " . self::generateBatchQueryCore($rows, $tableName, $mysqli);
        return $query;
    }
public static function generateBatchInsertQuery(array $rows, $tableName, \mysqli $mysqli)
    {
        $query = "INSERT " . self::generateBatchQueryCore($rows, $tableName, $mysqli);
        return $query;
    }
public static function generateBatchInsertQuery ( array $ rows , $ tableName , \ mysqli $ mysqli ) { $ query = "INSERT " . self :: generateBatchQueryCore ( $ rows , $ tableName , $ mysqli ) ; return $ query ; }
Generates a single INSERT query that for any number of rows. This is one of the most
efficient ways to insert a lot of data.
@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 INSERT query that for any number of rows . This is one of the most efficient ways to insert a lot of data .