mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
25 lines
743 B
C++
25 lines
743 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTBackupQuery.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class IBackup;
|
|
using BackupPtr = std::shared_ptr<const IBackup>;
|
|
using BackupMutablePtr = std::shared_ptr<IBackup>;
|
|
class IBackupEntry;
|
|
using BackupEntryPtr = std::unique_ptr<IBackupEntry>;
|
|
using BackupEntries = std::vector<std::pair<String, BackupEntryPtr>>;
|
|
struct BackupSettings;
|
|
class Context;
|
|
using ContextPtr = std::shared_ptr<const Context>;
|
|
|
|
/// Prepares backup entries.
|
|
BackupEntries makeBackupEntries(const ContextPtr & context, const ASTBackupQuery::Elements & elements, const BackupSettings & backup_settings);
|
|
|
|
/// Write backup entries to an opened backup.
|
|
void writeBackupEntries(BackupMutablePtr backup, BackupEntries && backup_entries, size_t num_threads);
|
|
|
|
}
|