(stmt: &Statement, params: P, buf: &mut BytesMut)
| 131 | } |
| 132 | |
| 133 | fn encode_stmt_query<P>(stmt: &Statement, params: P, buf: &mut BytesMut) -> Result<(), Error> |
| 134 | where |
| 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 | |
| 143 | impl<C, P> sealed::Sealed for StatementSingleRTTQueryWithCli<'_, '_, P, C> {} |
| 144 |