aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/SettingConstraintWritability.h
blob: 4a179dad28686528098ee8b62fbba38405cf34aa (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
#pragma once


namespace DB
{

enum class SettingConstraintWritability
{
    // Default. Setting can be change within specified range only in `readonly=0` or `readonly=2` mode.
    WRITABLE,

    // Setting cannot be changed at all.
    // Either READONLY or CONST keyword in SQL syntax can be used (<readonly/> or <const/> in config.xml) to enable this.
    // NOTE: name `CONST` is chosen to avoid confusion with `readonly` setting.
    CONST,

    // Setting can be changed within specified range, regardless of `readonly` setting value.
    CHANGEABLE_IN_READONLY,

    MAX
};

}