src/LitePdo.php
public function insertBatch(string $from, array $dataSet, array $options = [])
    {
        list($statement, $bindings) = $this->compileInsert($from, $dataSet, $options['columns'] ?? [], true);

        if (isset($options['returnSql'])) {
            return [$statement, $bindings];
        }

        return $this->fetchAffected($statement, $bindings);
    }
public function insertBatch(string $from, array $dataSet, array $options = [])
    {
        list($statement, $bindings) = $this->compileInsert($from, $dataSet, $options['columns'] ?? [], true);

        if (isset($options['returnSql'])) {
            return [$statement, $bindings];
        }

        return $this->fetchAffected($statement, $bindings);
    }
public function insertBatch ( string $ from , array $ dataSet , array $ options = [ ] ) { list ( $ statement , $ bindings ) = $ this -> compileInsert ( $ from , $ dataSet , $ options [ 'columns' ] ?? [ ] , true ) ; if ( isset ( $ options [ 'returnSql' ] ) ) { return [ $ statement , $ bindings ] ; } return $ this -> fetchAffected ( $ statement , $ bindings ) ; }
Run a statement for insert multi row
@param string $from
@param array $dataSet
@param  array $options
- returnSql     Will not be executed, just return the built SQL.
- columns       Setting the table columns to insert.
@return int|array
@throws \PDOException
@throws \InvalidArgumentException
Run a statement for insert multi row