protected function generateChunks(string $stmt, array $entries)
    {
        $result = '';
        foreach (array_chunk($entries, self::CHUNK_SIZE) as $chunk) {
            $result .= $stmt . "\n"
                . implode("\n", Utils::arrayAppendLast($chunk, ";\n\n", ','));
        }
        return $result;
    }