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

Function decode_execute

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

Source from the content-addressed store, hash-verified

890}
891
892fn decode_execute(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
893 let portal_name = buf.read_cstr()?.to_string();
894 let max_rows = buf.read_i32()?;
895 Ok(FrontendMessage::Execute {
896 portal_name,
897 max_rows,
898 })
899}
900
901fn decode_flush(mut _buf: Cursor) -> Result<FrontendMessage, io::Error> {
902 // Nothing more to decode.

Callers 1

decodeMethod · 0.85

Calls 3

read_cstrMethod · 0.80
read_i32Method · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected