Struct postgres_binary_copy::BinaryCopyReader
[−]
[src]
pub struct BinaryCopyReader<'a, I> {
// some fields omitted
}A ReadWithInfo implementation that generates binary-formatted output
for use with COPY ... FROM STDIN (FORMAT binary) statements.
Methods
impl<'a, I> BinaryCopyReader<'a, I> where I: StreamingIterator<Item=ToSql>[src]
fn new(types: &'a [Type], it: I) -> BinaryCopyReader<'a, I>
Creates a new BinaryCopyReader.
The reader will output tuples with a structure described by types and
values from it. it should return values in row-major order.