optimized version of postgres_protocol::frontend::execute
(portal_name: &str, max_rows: i32, buf: &mut BytesMut)
| 44 | |
| 45 | // optimized version of postgres_protocol::frontend::execute |
| 46 | pub(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 |
| 56 | pub(crate) fn close(variant: u8, name: &str, buf: &mut BytesMut) -> Result<(), Error> { |
no test coverage detected