pub struct CursorRow<'c, S: ?Sized> { /* private fields */ }
Expand description
An individual row of an result set. See crate::Cursor::next_row
.
Implementations
sourceimpl<'c, S> CursorRow<'c, S> where
S: Statement,
impl<'c, S> CursorRow<'c, S> where
S: Statement,
sourcepub fn get_data(
&mut self,
col_or_param_num: u16,
target: &mut impl OutputParameter
) -> Result<(), Error>
pub fn get_data(
&mut self,
col_or_param_num: u16,
target: &mut impl OutputParameter
) -> 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
.
sourcepub fn get_text(
&mut self,
col_or_param_num: u16,
buf: &mut Vec<u8>
) -> Result<bool, Error>
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.
sourcepub fn get_binary(
&mut self,
col_or_param_num: u16,
buf: &mut Vec<u8>
) -> Result<bool, Error>
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<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more