Expand description
MySQL wire protocol parser (client command packets)
MySQL packet format: [3-byte length][1-byte seq][payload] Command byte is the first byte of payload.
Structs§
- Mysql
Packet - Parsed MySQL packet
Enums§
- Mysql
Command - Mysql
Response - MySQL response type (simplified)
Functions§
- mysql_
response_ complete - Check if a MySQL response buffer is complete (ends with OK/EOF/ERR packet).
- parse_
mysql_ request - Parse a MySQL client command packet. Returns summary string if parseable. Only returns Some for actual command packets (seq=0, known command byte).
- parse_
mysql_ response - Parse a MySQL server response packet (first packet of response). Only parses responses to commands (seq >= 1).