MCPcopy Create free account
hub / github.com/HFQR/xitca-web / execute

Function execute

postgres/src/protocol.rs:46–53  ·  view source on GitHub ↗

optimized version of postgres_protocol::frontend::execute

(portal_name: &str, max_rows: i32, buf: &mut BytesMut)

Source from the content-addressed store, hash-verified

44
45// optimized version of postgres_protocol::frontend::execute
46pub(crate) fn execute(portal_name: &str, max_rows: i32, buf: &mut BytesMut) -> Result<(), Error> {
47 buf.put_u8(b'E');
48 write_body(buf, |buf| {
49 write_cstr(portal_name, buf);
50 buf.put_i32(max_rows);
51 Ok(())
52 })
53}
54
55// optimized version of postgres_protocol::frontend::close
56pub(crate) fn close(variant: u8, name: &str, buf: &mut BytesMut) -> Result<(), Error> {

Callers 5

executeMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
encode_stmt_queryFunction · 0.85
encodeMethod · 0.85

Calls 2

write_bodyFunction · 0.85
write_cstrFunction · 0.85

Tested by

no test coverage detected