Struct odbc_api::CursorRow

source ·
pub struct CursorRow<'s> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<'s> CursorRow<'s>

source

pub fn get_data( &mut self, col_or_param_num: u16, target: &mut impl CElement + CDataMut ) -> Result<(), Error>

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.

source

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

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.

source

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

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<'s> RefUnwindSafe for CursorRow<'s>

§

impl<'s> !Send for CursorRow<'s>

§

impl<'s> !Sync for CursorRow<'s>

§

impl<'s> Unpin for CursorRow<'s>

§

impl<'s> UnwindSafe for CursorRow<'s>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.