public function writeFiles(
        string $table,
        array $columns,
        array $files,
        string $format = Format::TSV,
        array $settings = [],
        int $concurrency = 5
    ) {
        $sql = 'INSERT INTO '.$table.' ('.implode(', ', $columns).') FORMAT '.strtoupper($format);
        
        foreach ($files as $i => $file) {
            if (!$file instanceof FileInterface) {
                $files[$i] = new File($file);
            }
        }
        
        $query = $this->createQuery($this->getServer(), $sql, [], $files, $settings);
        
        return $this->getTransport()->write([$query], $concurrency);
    }