#pragma once #include "config.h" #if USE_LIBARCHIVE # include namespace DB { using namespace std::literals; class TarArchiveWriter : public LibArchiveWriter { public: explicit TarArchiveWriter(const String & path_to_archive_, std::unique_ptr archive_write_buffer_) : LibArchiveWriter(path_to_archive_, std::move(archive_write_buffer_)) { createArchive(); } void setCompression(const String & compression_method_, int compression_level_) override; void setFormatAndSettings() override; void inferCompressionFromPath(); }; } #endif