Skip to main content

query_text

Function query_text 

Source
pub fn query_text(payload: &[u8]) -> Option<&str>
Expand description

Borrow the SQL text out of a Query/Parse-style payload without copying. Mirrors read_cstring semantics (bytes up to the first NUL, strict UTF-8) but never allocates — for hot-path inspection where the message itself is forwarded verbatim.