#pragma once
#include
#include
#include
namespace DB
{
[[nodiscard]] String quoteString(std::string_view x);
// Prefer string_view over StringRef for implicit conversions
[[nodiscard]] inline String quoteString(std::same_as auto x)
{
return quoteString(std::string_view{x.data, x.size});
}
/// Double quote the string.
String doubleQuoteString(StringRef x);
/// Quote the identifier with backquotes.
String backQuote(StringRef x);
/// Quote the identifier with backquotes, if required.
String backQuoteIfNeed(StringRef x);
/// Quote the identifier with backquotes, for use in MySQL queries.
String backQuoteMySQL(StringRef x);
}