public function insertBatch(array $set = null, bool $escape = null, int $batchSize = 100, bool $testing = false)
	{
		if (is_array($set) && $this->skipValidation === false)
		{
			foreach ($set as $row)
			{
				if ($this->validate($row) === false)
				{
					return false;
				}
			}
		}

		return $this->builder()->insertBatch($set, $escape, $batchSize, $testing);
	}
public function insertBatch(array $set = null, bool $escape = null, int $batchSize = 100, bool $testing = false)
	{
		if (is_array($set) && $this->skipValidation === false)
		{
			foreach ($set as $row)
			{
				if ($this->validate($row) === false)
				{
					return false;
				}
			}
		}

		return $this->builder()->insertBatch($set, $escape, $batchSize, $testing);
	}
public function insertBatch ( array $ set = null , bool $ escape = null , int $ batchSize = 100 , bool $ testing = false ) { if ( is_array ( $ set ) && $ this -> skipValidation === false ) { foreach ( $ set as $ row ) { if ( $ this -> validate ( $ row ) === false ) { return false ; } } } return $ this -> builder ( ) -> insertBatch ( $ set , $ escape , $ batchSize , $ testing ) ; }
Compiles batch insert strings and runs the queries, validating each row prior.

@param array   $set       An associative array of insert values
@param boolean $escape    Whether to escape values and identifiers

@param integer $batchSize
@param boolean $testing

@return integer|boolean Number of rows inserted or FALSE on failure
Compiles batch insert strings and runs the queries validating each row prior .