MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode_query

Function decode_query

src/pgwire/src/codec.rs:807–811  ·  view source on GitHub ↗
(mut buf: Cursor)

Source from the content-addressed store, hash-verified

805}
806
807fn decode_query(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
808 Ok(FrontendMessage::Query {
809 sql: buf.read_cstr()?.to_string(),
810 })
811}
812
813fn decode_parse(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
814 let name = buf.read_cstr()?;

Callers 1

decodeMethod · 0.85

Calls 2

read_cstrMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected