(bytes: &[u8], format: &str)
| 364 | |
| 365 | #[sqlfunc] |
| 366 | fn encode(bytes: &[u8], format: &str) -> Result<String, EvalError> { |
| 367 | let format = encoding::lookup_format(format)?; |
| 368 | Ok(format.encode(bytes)) |
| 369 | } |
| 370 | |
| 371 | #[sqlfunc] |
| 372 | fn decode(string: &str, format: &str) -> Result<Vec<u8>, EvalError> { |