mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
21 lines
406 B
C++
21 lines
406 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
#include <Core/SettingsFields.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct SettingFieldOptionalString
|
|
{
|
|
std::optional<String> value;
|
|
|
|
explicit SettingFieldOptionalString(const std::optional<String> & value_) : value(value_) {}
|
|
|
|
explicit SettingFieldOptionalString(const Field & field);
|
|
|
|
explicit operator Field() const { return Field(value ? toString(*value) : ""); }
|
|
};
|
|
|
|
}
|