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