MCPcopy Create free account
hub / github.com/erans/pgsqlite / parse_execute

Method parse_execute

src/protocol/parser.rs:310–318  ·  view source on GitHub ↗
(&self, cursor: &mut Cursor<&[u8]>, _length: u32)

Source from the content-addressed store, hash-verified

308 }
309
310 async fn parse_execute(&self, cursor: &mut Cursor<&[u8]>, _length: u32) -> Result<FrontendMessage, ParseError> {
311 let portal_name = self.read_cstring(cursor).await?;
312 let max_rows = cursor.read_i32::<BigEndian>()?;
313
314 Ok(FrontendMessage::Execute {
315 portal: portal_name,
316 max_rows,
317 })
318 }
319
320 async fn parse_close(&self, cursor: &mut Cursor<&[u8]>, _length: u32) -> Result<FrontendMessage, ParseError> {
321 let close_type = cursor.read_u8()?;

Callers 1

parse_messageMethod · 0.80

Calls 1

read_cstringMethod · 0.80

Tested by

no test coverage detected