Function trim_bytea

Source
pub fn trim_bytea(bytes: &[u8], bytesremoved: &[u8]) -> Box<[u8]>
Expand description

Removes the longest string containing only bytes appearing in bytesremoved from the start, end, or both ends (BOTH is the default) of bytes.

ยงExample

query T
SELECT trim('\x9012'::bytea from '\x1234567890'::bytea);
----
\x345678