(portal: &str, statement: &str, values: &[&str])
| 1136 | } |
| 1137 | |
| 1138 | fn bind_statement(portal: &str, statement: &str, values: &[&str]) -> Vec<u8> { |
| 1139 | let mut body = Vec::new(); |
| 1140 | add_cstring(&mut body, portal); |
| 1141 | add_cstring(&mut body, statement); |
| 1142 | body.extend_from_slice(&0_i16.to_be_bytes()); |
| 1143 | body.extend_from_slice(&(values.len() as i16).to_be_bytes()); |
| 1144 | for value in values { |
| 1145 | body.extend_from_slice(&(value.len() as i32).to_be_bytes()); |
| 1146 | body.extend_from_slice(value.as_bytes()); |
| 1147 | } |
| 1148 | body.extend_from_slice(&0_i16.to_be_bytes()); |
| 1149 | tagged_message(b'B', body) |
| 1150 | } |
| 1151 | |
| 1152 | fn describe_portal(portal: &str) -> Vec<u8> { |
| 1153 | let mut body = Vec::new(); |
no test coverage detected