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

Function encode_statement_create

postgres/src/driver/codec/encode.rs:82–87  ·  view source on GitHub ↗
(name: &str, stmt: &str, types: &[Type], buf: &mut BytesMut)

Source from the content-addressed store, hash-verified

80}
81
82fn encode_statement_create(name: &str, stmt: &str, types: &[Type], buf: &mut BytesMut) -> Result<(), Error> {
83 frontend::parse(name, stmt, types.iter().map(Type::oid), buf)?;
84 frontend::describe(b'S', name, buf)?;
85 protocol::sync(buf);
86 Ok(())
87}
88
89impl sealed::Sealed for StatementPreparedCancel<'_> {}
90

Callers 1

encodeMethod · 0.85

Calls 3

syncFunction · 0.50
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected