2021-02-07 01:41:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Core/BaseSettings.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class ASTStorage;
|
|
|
|
|
|
|
|
|
2023-02-01 13:54:03 +00:00
|
|
|
#define MEMORY_SETTINGS(M, ALIAS) \
|
2021-02-19 09:02:18 +00:00
|
|
|
M(Bool, compress, false, "Compress data in memory", 0) \
|
2021-02-07 01:41:31 +00:00
|
|
|
|
2023-02-01 13:54:03 +00:00
|
|
|
DECLARE_SETTINGS_TRAITS(memorySettingsTraits, MEMORY_SETTINGS)
|
2021-02-07 01:41:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** Settings for the Memory engine.
|
|
|
|
* Could be loaded from a CREATE TABLE query (SETTINGS clause).
|
|
|
|
*/
|
|
|
|
struct MemorySettings : public BaseSettings<memorySettingsTraits>
|
|
|
|
{
|
|
|
|
void loadFromQuery(ASTStorage & storage_def);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|