[][src]Struct odbc_api::buffers::ColumnarRowSet

pub struct ColumnarRowSet { /* fields omitted */ }

A columnar buffer intended to be bound with crate::Cursor::bind_buffer in order to obtain results from a cursor.

This buffer is designed to be versatile. It supports a wide variaty of usage scenarios. It is efficient in retrieving data, but expensive to allocate, as columns are allocated seperatly. This is required in order to efficiently allow for rebinding columns, if this buffer is used to provide array input parameters those maximum size is not known in advance.

Most applications should find the overhead neglegible, especially if instances are reused.

Implementations

impl ColumnarRowSet[src]

pub fn new(
    max_rows: u32,
    description: impl Iterator<Item = BufferDescription>
) -> Self
[src]

Allocates for each buffer description a buffer large enough to hold max_rows.

pub fn column(&self, column_index: usize) -> AnyColumnView<'_>[src]

Use this method to gain access to the actual column data.

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

Number of valid rows in the buffer.

Trait Implementations

impl RowSetBuffer for ColumnarRowSet[src]

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.