pgcopy 0.0.2

PostgreSQL binary COPY format generator
Documentation
1
2
3
4
5
6
7
assert_write!(static_str, write_str,
    "hello world",
    vec![0x00, 0x00, 0x00, 0x0b, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64]);

assert_write!(heap_string, write_str,
    "hello world".to_string(),
    vec![0x00, 0x00, 0x00, 0x0b, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64]);