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::NaiveTime;

    assert_write!(naive_time, write_time,
        NaiveTime::from_str("13:28:01.789").unwrap(),
        vec![0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0b, 0x49, 0xbd, 0x64, 0x48]
    );
}