ClickHouse/src/Backups/BackupStatus.h

29 lines
421 B
C++
Raw Normal View History

#pragma once
#include <base/types.h>
namespace DB
{
enum class BackupStatus
{
/// Statuses of making backups
PREPARING,
MAKING_BACKUP,
BACKUP_COMPLETE,
FAILED_TO_BACKUP,
/// Status of restoring
RESTORING,
RESTORED,
FAILED_TO_RESTORE,
MAX,
};
std::string_view toString(BackupStatus backup_status);
const std::vector<std::pair<String, Int8>> & getBackupStatusEnumValues();
}