#pragma once #include #include namespace DB { struct SettingFieldOptionalString { std::optional value; explicit SettingFieldOptionalString(const std::optional & value_) : value(value_) {} explicit SettingFieldOptionalString(const Field & field); explicit operator Field() const { return Field(value ? toString(*value) : ""); } }; }