pub fn decode_copy_escapes(value: &[u8]) -> Vec<u8> ⓘExpand description
Decode PostgreSQL COPY escape sequences (\t, \n, \r, \\; a \N
or unknown escape passes through verbatim).
This is the canonical decoder for the COPY text wire format — consumers
elsewhere in the crate (e.g. the redactor’s ValueRewriter in
src/redactor/rewriter.rs) should call this instead of keeping their own
copy, so escape-handling fixes land in exactly one place.