Struct odbc_api::CursorRow[][src]

pub struct CursorRow<'c, S: ?Sized> { /* fields omitted */ }
Expand description

An individual row of an result set. See crate::Cursor::next_row.

Implementations

impl<'c, S> CursorRow<'c, S> where
    S: Statement
[src]

pub fn get_data(
    &mut self,
    col_or_param_num: u16,
    target: &mut impl Output
) -> Result<(), Error>
[src]

Fills a suitable target buffer with a field from the current row of the result set. This method drains the data from the field. It can be called repeatedly to if not all the data fit in the output buffer at once. It should not called repeatedly to fetch the same value twice. Column index starts at 1.

pub fn get_text(
    &mut self,
    col_or_param_num: u16,
    buf: &mut Vec<u8>
) -> Result<bool, Error>
[src]

Retrieves arbitrary large character data from the row and stores it in the buffer. Column index starts at 1.

Return

true indicates that the value has not been NULL and the value has been placed in buf. false indicates that the value is NULL. The buffer is cleared in that case.

pub fn get_binary(
    &mut self,
    col_or_param_num: u16,
    buf: &mut Vec<u8>
) -> Result<bool, Error>
[src]

Retrieves arbitrary large binary data from the row and stores it in the buffer. Column index starts at 1.

Return

true indicates that the value has not been NULL and the value has been placed in buf. false indicates that the value is NULL. The buffer is cleared in that case.

Auto Trait Implementations

impl<'c, S: ?Sized> RefUnwindSafe for CursorRow<'c, S> where
    S: RefUnwindSafe

impl<'c, S: ?Sized> Send for CursorRow<'c, S> where
    S: Send

impl<'c, S: ?Sized> Sync for CursorRow<'c, S> where
    S: Sync

impl<'c, S: ?Sized> Unpin for CursorRow<'c, S>

impl<'c, S> !UnwindSafe for CursorRow<'c, S>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.