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 binary-format COPY FROM STDIN
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> Debug for BinaryCopyReader<'a, I>
[src]
impl<'a, I> ReadWithInfo for BinaryCopyReader<'a, I> where I: StreamingIterator<Item=ToSql>
[src]
fn read_with_info(&mut self, buf: &mut [u8], info: &SessionInfo) -> Result<usize>
Like Read::read
.