pub struct Row { /* private fields */ }Expand description
A libsql row.
Implementations§
source§impl Row
impl Row
sourcepub fn get<T>(&self, idx: i32) -> Result<T>where
T: FromValue,
pub fn get<T>(&self, idx: i32) -> Result<T>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>
pub fn get_value(&self, idx: i32) -> Result<Value>
Fetch the value at the provided column index.
sourcepub fn get_str(&self, idx: i32) -> Result<&str>
pub fn get_str(&self, idx: i32) -> Result<&str>
Get a &str column at the provided index, errors out if the column
is not of the TEXT.
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.
sourcepub fn column_type(&self, idx: i32) -> Result<ValueType>
pub fn column_type(&self, idx: i32) -> Result<ValueType>
Fetch the column type from the provided index.
Trait Implementations§
Auto Trait Implementations§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request