(&self, row: mz_repr::Row)
| 31 | |
| 32 | impl Encode for TextEncoder { |
| 33 | fn encode_unchecked(&self, row: mz_repr::Row) -> Vec<u8> { |
| 34 | let mut buf = BytesMut::new(); |
| 35 | for ((_, typ), val) in self.columns.iter().zip_eq(row.iter()) { |
| 36 | if let Some(pgrepr_value) = mz_pgrepr::Value::from_datum(val, &typ.scalar_type) { |
| 37 | pgrepr_value.encode_text(&mut buf); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | buf.to_vec() |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | #[derive(Debug)] |
nothing calls this directly
no test coverage detected