pub fn execute(portal: &str, max_rows: i32, buf: &mut BytesMut) -> Result<()>Expand description
Writes an execute message.
Executes a portal (bound statement). The server responds with DataRow
messages and CommandComplete. Use 0 for max_rows to fetch all rows.
§Arguments
portal- Portal name (null-terminated, empty string for unnamed)max_rows- Maximum number of rows to return (0 = unlimited)buf- Buffer to write the message to
§Errors
Currently infallible — always returns Ok(()). The io::Result return
type is preserved for forward compatibility.
§Panics
Panics via msg_len if portal.len() exceeds i32::MAX bytes.