| 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); |
no test coverage detected