pgcopy 0.0.2

PostgreSQL binary COPY format generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(feature = "with-chrono")]
mod with_chrono {
    use std::str::FromStr;

    use chrono::NaiveDate;

    assert_write!(naive_date, write_date,
        NaiveDate::from_str("2019-01-27").unwrap(),
        vec![0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x1b, 0x36]
    );
}