rbdc_mysql/protocol/statement/stmt_close.rs
1use crate::protocol::Capabilities;
2use rbdc::io::Encode;
3
4// https://dev.mysql.com/doc/internals/en/com-stmt-close.html
5
6#[derive(Debug)]
7pub struct StmtClose {
8 pub statement: u32,
9}
10
11impl Encode<'_, Capabilities> for StmtClose {
12 fn encode_with(&self, buf: &mut Vec<u8>, _: Capabilities) {
13 buf.push(0x19); // COM_STMT_CLOSE
14 buf.extend(&self.statement.to_le_bytes());
15 }
16}