ClickHouse/src/Common/SettingConstraintWritability.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
584 B
C++
Raw Normal View History

2022-09-06 18:28:10 +00:00
#pragma once
namespace DB
{
2022-09-12 19:03:06 +00:00
enum class SettingConstraintWritability
2022-09-06 18:28:10 +00:00
{
2022-09-15 11:34:14 +00:00
// Default. Setting can be change within specified range only in `readonly=0` or `readonly=2` mode.
2022-09-06 18:28:10 +00:00
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.
2022-09-06 18:51:33 +00:00
// NOTE: name `CONST` is chosen to avoid confusion with `readonly` setting.
2022-09-06 18:28:10 +00:00
CONST,
// Setting can be changed within specified range, regardless of `readonly` setting value.
CHANGEABLE_IN_READONLY,
2022-09-15 11:34:14 +00:00
MAX
2022-09-06 18:28:10 +00:00
};
}