src/InsertQuery/InsertQueryBuilder.php
public function split(int $max): iterable
    {
        $pos = 0;
        $total = count($this->values);
        while ($pos < $total) {
            $clone = clone $this;
            $clone->values = array_slice($this->values, $pos, $max);
            $pos += $max;
            yield $clone;
        }
    }
public function split(int $max): iterable
    {
        $pos = 0;
        $total = count($this->values);
        while ($pos < $total) {
            $clone = clone $this;
            $clone->values = array_slice($this->values, $pos, $max);
            $pos += $max;
            yield $clone;
        }
    }
public function split ( int $ max ) : iterable { $ pos = 0 ; $ total = count ( $ this -> values ) ; while ( $ pos < $ total ) { $ clone = clone $ this ; $ clone -> values = array_slice ( $ this -> values , $ pos , $ max ) ; $ pos += $ max ; yield $ clone ; } }
Split into multiple INSERT statements.

@param int $max
@return iterable|self[]
Split into multiple INSERT statements .