Skip to main content

trim_copy_data

Function trim_copy_data 

Source
pub fn trim_copy_data(data: &[u8]) -> &[u8] ⓘ
Expand description

Trim leading whitespace/newlines from a COPY data block without copying.

The block as emitted by the parser may start with the newline that followed the COPY header; row parsing expects the first data line at offset 0.