MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / writeBackQuotedStringMySQL

Function writeBackQuotedStringMySQL

src/IO/WriteHelpers.h:603–608  ·  view source on GitHub ↗

Outputs a string in backquotes for MySQL.

Source from the content-addressed store, hash-verified

601
602/// Outputs a string in backquotes for MySQL.
603inline void writeBackQuotedStringMySQL(std::string_view s, WriteBuffer & buf)
604{
605 writeChar('`', buf);
606 writeAnyEscapedString<'`', true>(s.data(), s.data() + s.size(), buf);
607 writeChar('`', buf);
608}
609
610
611/// Write quoted if the string doesn't look like and identifier.

Callers 4

writeIdentifierMethod · 0.85
backQuoteMySQLFunction · 0.85
writeQuotedMethod · 0.85

Calls 3

writeCharFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

backQuoteMySQLFunction · 0.68