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

Method sendPacket

src/Core/MySQL/PacketEndpoint.h:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41 template<class T>
42 void sendPacket(const T & packet, bool flush = true)
43 {
44 static_assert(std::is_base_of<IMySQLWritePacket, T>());
45 packet.writePayload(*out, sequence_id);
46 if (flush)
47 out->next();
48 }
49
50 /// Converts packet to text. Is used for debug output.
51 static String packetToText(const String & payload);

Callers 12

runMethod · 0.80
authenticateMethod · 0.80
comInitDBMethod · 0.80
comFieldListMethod · 0.80
comPingMethod · 0.80
comQueryMethod · 0.80
comStmtPrepareMethod · 0.80
comStmtExecuteMethod · 0.80
writePrefixMethod · 0.80
consumeMethod · 0.80
finalizeImplMethod · 0.80
authenticateMethod · 0.80

Calls 2

writePayloadMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected