[−][src]Struct odbc_api::buffers::ColumnarRowSet
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]
max_rows: u32,
description: impl Iterator<Item = BufferDescription>
) -> Self
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]
pub fn bind_type(&self) -> u32
[src]
pub fn row_array_size(&self) -> u32
[src]
pub fn mut_num_fetch_rows(&mut self) -> &mut usize
[src]
pub unsafe fn bind_to_cursor(
&mut self,
cursor: &mut impl Cursor
) -> Result<(), Error>
[src]
&mut self,
cursor: &mut impl Cursor
) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for ColumnarRowSet
impl Send for ColumnarRowSet
impl Sync for ColumnarRowSet
impl Unpin for ColumnarRowSet
impl UnwindSafe for ColumnarRowSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,