pub struct LibsqlRow { /* private fields */ }Expand description
A libsql row.
Implementations§
Source§impl Row
impl Row
Sourcepub fn get<T>(&self, idx: i32) -> Result<T, Error>where
T: FromValue,
pub fn get<T>(&self, idx: i32) -> Result<T, Error>where
T: FromValue,
Fetch the value at the provided column index and attempt to
convert the value into the provided type T.
§Example
row.get::<u64>(0).unwrap();Sourcepub fn get_value(&self, idx: i32) -> Result<Value, Error>
pub fn get_value(&self, idx: i32) -> Result<Value, Error>
Fetch the value at the provided column index.
Sourcepub fn get_str(&self, idx: i32) -> Result<&str, Error>
pub fn get_str(&self, idx: i32) -> Result<&str, Error>
Get a &str column at the provided index, errors out if the column
is not of the TEXT.
Sourcepub fn column_count(&self) -> i32
pub fn column_count(&self) -> i32
Get the count of columns in this set of rows.
Sourcepub fn column_name(&self, idx: i32) -> Option<&str>
pub fn column_name(&self, idx: i32) -> Option<&str>
Fetch the name of the column at the provided index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl !RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl !UnwindSafe for Row
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more