Rust

The MySQL client protocol classifier.

Contents

use utopia_query::classifier::mysql::MySql;
Rust
pub struct MySql

Classifies MySQL client protocol packets: 3-byte payload length, sequence id, command byte, payload.

COM_QUERY (0x03) is classified by its SQL text; the prepared statement commands (COM_STMT_PREPARE, _EXECUTE, _SEND_LONG_DATA, _CLOSE, _RESET) are writes, so they reach the primary; anything else is unknown.