aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Backups/BackupStatus.h
blob: 0afe6efe899a83feba0d93efc04e814d684ee8ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <base/types.h>


namespace DB
{

enum class BackupStatus
{
    /// Statuses of making backups
    CREATING_BACKUP,
    BACKUP_CREATED,
    BACKUP_FAILED,

    /// Status of restoring
    RESTORING,
    RESTORED,
    RESTORE_FAILED,

    MAX,
};

std::string_view toString(BackupStatus backup_status);

/// Returns vector containing all values of BackupStatus and their string representation,
/// which is used to create DataTypeEnum8 to store those statuses.
const std::vector<std::pair<String, Int8>> & getBackupStatusEnumValues();

}