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

Function encode_stmt_query

postgres/src/driver/codec/encode.rs:133–141  ·  view source on GitHub ↗
(stmt: &Statement, params: P, buf: &mut BytesMut)

Source from the content-addressed store, hash-verified

131}
132
133fn encode_stmt_query<P>(stmt: &Statement, params: P, buf: &mut BytesMut) -> Result<(), Error>
134where
135 P: AsParams,
136{
137 encode_bind(stmt.name(), stmt.params(), params, "", buf)?;
138 protocol::execute("", 0, buf)?;
139 protocol::sync(buf);
140 Ok(())
141}
142
143impl<C, P> sealed::Sealed for StatementSingleRTTQueryWithCli<'_, '_, P, C> {}
144

Callers 1

encodeMethod · 0.85

Calls 5

encode_bindFunction · 0.85
executeFunction · 0.85
syncFunction · 0.50
nameMethod · 0.45
paramsMethod · 0.45

Tested by

no test coverage detected