#pragma once #include namespace DB { /** Prints Field as literal in SQL query */ class FieldVisitorToString : public StaticVisitor { public: String operator() (const Null & x) const; String operator() (const UInt64 & x) const; String operator() (const UInt128 & x) const; String operator() (const UInt256 & x) const; String operator() (const Int64 & x) const; String operator() (const Int128 & x) const; String operator() (const Int256 & x) const; String operator() (const UUID & x) const; String operator() (const IPv4 & x) const; String operator() (const IPv6 & x) const; String operator() (const Float64 & x) const; String operator() (const String & x) const; String operator() (const Array & x) const; String operator() (const Tuple & x) const; String operator() (const Map & x) const; String operator() (const Object & x) const; String operator() (const DecimalField & x) const; String operator() (const DecimalField & x) const; String operator() (const DecimalField & x) const; String operator() (const DecimalField & x) const; String operator() (const AggregateFunctionStateData & x) const; String operator() (const bool & x) const; }; /// Get value from field and convert it to string. /// Also remove quotes from strings. String convertFieldToString(const Field & field); }