ClickHouse/src/Storages/SetSettings.h

32 lines
717 B
C++
Raw Normal View History

2020-09-15 09:16:10 +00:00
#pragma once
#include <Core/BaseSettings.h>
#include <Core/Settings.h>
namespace DB
{
class ASTStorage;
#define SET_RELATED_SETTINGS(M) \
2020-12-15 16:45:13 +00:00
M(Bool, persistent, true, "Disable setting to avoid the overhead of writing to disk for StorageSet", 0) \
M(String, disk, "default", "Name of the disk used to persist set data", 0)
2020-09-15 09:16:10 +00:00
#define LIST_OF_SET_SETTINGS(M) \
SET_RELATED_SETTINGS(M) \
FORMAT_FACTORY_SETTINGS(M)
DECLARE_SETTINGS_TRAITS(setSettingsTraits, LIST_OF_SET_SETTINGS)
/** Settings for the Set engine.
* Could be loaded from a CREATE TABLE query (SETTINGS clause).
*/
struct SetSettings : public BaseSettings<setSettingsTraits>
{
void loadFromQuery(ASTStorage & storage_def);
};
}