Struct convergence::protocol_ext::DataRowBatch[][src]

pub struct DataRowBatch { /* fields omitted */ }

Supports batched rows for e.g. returning portal result sets.

NB: this struct only performs limited validation of column consistency across rows.

Implementations

impl DataRowBatch[src]

pub fn new(format_code: FormatCode, num_cols: usize) -> Self[src]

Creates a new row batch using the given format code, requiring a certain number of columns per row.

pub fn from_row_desc(desc: &RowDescription) -> Self[src]

Creates a DataRowBatch from the given RowDescription.

pub fn create_row(&mut self) -> DataRowWriter<'_>[src]

Starts writing a new row.

Returns a DataRowWriter that is responsible for the actual value encoding.

pub fn num_rows(&self) -> usize[src]

Returns the number of rows currently written to this batch.

Trait Implementations

impl Encoder<DataRowBatch> for ConnectionCodec[src]

type Error = ProtocolError

The type of encoding errors. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.