mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
29 lines
421 B
C++
29 lines
421 B
C++
|
#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();
|
||
|
|
||
|
}
|