#include #include #include namespace DB { String quoteString(const StringRef & x) { String res(x.size, '\0'); WriteBufferFromString wb(res); writeQuotedString(x, wb); return res; } String backQuote(const StringRef & x) { String res(x.size, '\0'); { WriteBufferFromString wb(res); writeBackQuotedString(x, wb); } return res; } String backQuoteIfNeed(const StringRef & x) { String res(x.size, '\0'); { WriteBufferFromString wb(res); writeProbablyBackQuotedString(x, wb); } return res; } }