Function
encode_statement_create
(name: &str, stmt: &str, types: &[Type], buf: &mut BytesMut)
Source from the content-addressed store, hash-verified
| 80 | } |
| 81 | |
| 82 | fn 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 | |
| 89 | impl sealed::Sealed for StatementPreparedCancel<'_> {} |
| 90 | |
Tested by
no test coverage detected