(&self, pos: usize)
| 230 | } |
| 231 | |
| 232 | pub fn get_string(&self, pos: usize) -> crate::Result<&str> { |
| 233 | let bytes = self.get_binary(pos)?; |
| 234 | std::str::from_utf8(bytes).map_err(|e| crate::Error::UnexpectedError { |
| 235 | message: format!("BinaryRow: invalid UTF-8 in string field at pos {pos}: {e}"), |
| 236 | source: Some(Box::new(e)), |
| 237 | }) |
| 238 | } |
| 239 | |
| 240 | pub(crate) fn get_decimal_unscaled(&self, pos: usize, precision: u32) -> crate::Result<i128> { |
| 241 | if precision <= 18 { |
no test coverage detected