ClickHouse/src/Backups/BackupInfo.h
2022-04-25 16:34:33 +02:00

26 lines
403 B
C++

#pragma once
#include <Core/Field.h>
namespace DB
{
class IAST;
using ASTPtr = std::shared_ptr<IAST>;
/// Information about a backup.
struct BackupInfo
{
String backup_engine_name;
String id_arg;
std::vector<Field> args;
String toString() const;
static BackupInfo fromString(const String & str);
ASTPtr toAST() const;
static BackupInfo fromAST(const IAST & ast);
};
}