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.

Trait Implementations

impl<'a, I> Debug for BinaryCopyReader<'a, I> where I: Debug
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a, I> ReadWithInfo for BinaryCopyReader<'a, I> where I: StreamingIterator<Item=ToSql>
[src]

fn read_with_info(&mut self, buf: &mut [u8], info: &CopyInfo) -> Result<usize>

Like Read::read.