mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
27 lines
468 B
C++
27 lines
468 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Core/BaseSettings.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
class ASTStorage;
|
||
|
|
||
|
|
||
|
#define MEMORY_SETTINGS(M) \
|
||
|
M(Bool, compress, true, "Compress data in memory", 0) \
|
||
|
|
||
|
DECLARE_SETTINGS_TRAITS(memorySettingsTraits, MEMORY_SETTINGS)
|
||
|
|
||
|
|
||
|
/** 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);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|