pub struct TextCopyEncoder { /* private fields */ }Expand description
Encoder for text COPY IN format.
Text COPY format: tab-separated fields, newline-separated rows.
Special values: \N for NULL, backslash escaping for special chars.
§Example
use sentinel_driver::copy::text::TextCopyEncoder;
let mut encoder = TextCopyEncoder::new();
encoder.add_row(&[Some("42"), Some("hello world")]);
encoder.add_row(&[Some("7"), None]); // NULL value
let data = encoder.finish();Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextCopyEncoder
impl RefUnwindSafe for TextCopyEncoder
impl Send for TextCopyEncoder
impl Sync for TextCopyEncoder
impl Unpin for TextCopyEncoder
impl UnsafeUnpin for TextCopyEncoder
impl UnwindSafe for TextCopyEncoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more