Skip to main content

build_stmt_prepare_packet

Function build_stmt_prepare_packet 

Source
pub fn build_stmt_prepare_packet(sql: &str, sequence_id: u8) -> Vec<u8> 
Expand description

Build a COM_STMT_PREPARE packet.

§Arguments

  • sql - The SQL query with ? placeholders for parameters
  • sequence_id - The packet sequence number (typically 0)

§Returns

The complete packet bytes ready to send.