row2pgcopy 1.7.0

Simple Serializer for PGCOPY
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Functions for pgcopy trailer(-1 as i16)

use std::io;

/// Writes trailer bytes(-1 as i16)
pub fn write_trailer<W>(mut wtr: W) -> Result<(), io::Error>
where
    W: io::Write,
{
    wtr.write_all(&[0xff, 0xff])?;
    Ok(())
}