public function multiInsert(string $table, array $rows, array $columns = []): int
    {
        if (empty($rows)) {
            return 0;
        }

        [$sql, $params] = array_values(SqlPreparator::prepareMultiInsert($table, $rows, $columns));

        return $this->conn->executeUpdate($sql, $params);
    }
public function multiInsert(string $table, array $rows, array $columns = []): int
    {
        if (empty($rows)) {
            return 0;
        }

        [$sql, $params] = array_values(SqlPreparator::prepareMultiInsert($table, $rows, $columns));

        return $this->conn->executeUpdate($sql, $params);
    }
public function multiInsert ( string $ table , array $ rows , array $ columns = [ ] ) : int { if ( empty ( $ rows ) ) { return 0 ; } [ $ sql , $ params ] = array_values ( SqlPreparator :: prepareMultiInsert ( $ table , $ rows , $ columns ) ) ; return $ this -> conn -> executeUpdate ( $ sql , $ params ) ; }
executes "INSERT" sql statement by multi array of values
to be used for bulk inserts

@param string $table   table name
@param array  $rows    2-dimensional array of values to insert
@param array  $columns columns for insert if $values are not associative

@return int number of affected rows

@throws DBALManagerException
executes INSERT sql statement by multi array of values to be used for bulk inserts