mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
24 lines
584 B
C++
24 lines
584 B
C++
#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
|
|
};
|
|
|
|
}
|