2020-09-15 09:16:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/BaseSettings.h>
|
|
|
|
#include <Core/Settings.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class ASTStorage;
|
|
|
|
|
|
|
|
|
2023-02-01 13:54:03 +00:00
|
|
|
#define SET_RELATED_SETTINGS(M, ALIAS) \
|
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
|
|
|
|
2023-02-01 13:54:03 +00:00
|
|
|
#define LIST_OF_SET_SETTINGS(M, ALIAS) \
|
|
|
|
SET_RELATED_SETTINGS(M, ALIAS) \
|
2023-09-20 16:00:28 +00:00
|
|
|
LIST_OF_ALL_FORMAT_SETTINGS(M, ALIAS)
|
2020-09-15 09:16:10 +00:00
|
|
|
|
2023-02-01 13:54:03 +00:00
|
|
|
DECLARE_SETTINGS_TRAITS(setSettingsTraits, LIST_OF_SET_SETTINGS)
|
2020-09-15 09:16:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** 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);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|