pub struct SqliteRowRef { /* private fields */ }Implementations§
Source§impl SqliteRowRef
impl SqliteRowRef
pub fn from_rusqlite(row: &Row<'_>) -> Result<Self, RowError>
Trait Implementations§
Source§impl RowRef for SqliteRowRef
impl RowRef for SqliteRowRef
Source§fn get_i32_opt(&self, c: &str) -> Result<Option<i32>, RowError>
fn get_i32_opt(&self, c: &str) -> Result<Option<i32>, RowError>
Get an optional integer column value.
Source§fn get_i64_opt(&self, c: &str) -> Result<Option<i64>, RowError>
fn get_i64_opt(&self, c: &str) -> Result<Option<i64>, RowError>
Get an optional 64-bit integer column value.
Source§fn get_f64_opt(&self, c: &str) -> Result<Option<f64>, RowError>
fn get_f64_opt(&self, c: &str) -> Result<Option<f64>, RowError>
Get an optional float column value.
Source§fn get_bool_opt(&self, c: &str) -> Result<Option<bool>, RowError>
fn get_bool_opt(&self, c: &str) -> Result<Option<bool>, RowError>
Get an optional boolean column value.
Source§fn get_str(&self, c: &str) -> Result<&str, RowError>
fn get_str(&self, c: &str) -> Result<&str, RowError>
Get a string column value as a borrowed reference (zero-copy). Read more
Source§fn get_str_opt(&self, c: &str) -> Result<Option<&str>, RowError>
fn get_str_opt(&self, c: &str) -> Result<Option<&str>, RowError>
Get an optional string column value as a borrowed reference.
Source§fn get_bytes(&self, c: &str) -> Result<&[u8], RowError>
fn get_bytes(&self, c: &str) -> Result<&[u8], RowError>
Get a bytes column value as a borrowed reference (zero-copy).
Source§fn get_bytes_opt(&self, c: &str) -> Result<Option<&[u8]>, RowError>
fn get_bytes_opt(&self, c: &str) -> Result<Option<&[u8]>, RowError>
Get optional bytes as borrowed reference.
fn get_datetime_utc(&self, c: &str) -> Result<DateTime<Utc>, RowError>
fn get_datetime_utc_opt( &self, c: &str, ) -> Result<Option<DateTime<Utc>>, RowError>
fn get_naive_datetime(&self, c: &str) -> Result<NaiveDateTime, RowError>
fn get_naive_datetime_opt( &self, c: &str, ) -> Result<Option<NaiveDateTime>, RowError>
fn get_naive_date(&self, c: &str) -> Result<NaiveDate, RowError>
fn get_naive_date_opt(&self, c: &str) -> Result<Option<NaiveDate>, RowError>
fn get_naive_time(&self, c: &str) -> Result<NaiveTime, RowError>
fn get_naive_time_opt(&self, c: &str) -> Result<Option<NaiveTime>, RowError>
fn get_uuid(&self, c: &str) -> Result<Uuid, RowError>
fn get_uuid_opt(&self, c: &str) -> Result<Option<Uuid>, RowError>
fn get_json(&self, c: &str) -> Result<Value, RowError>
fn get_json_opt(&self, c: &str) -> Result<Option<Value>, RowError>
fn get_decimal(&self, c: &str) -> Result<Decimal, RowError>
fn get_decimal_opt(&self, c: &str) -> Result<Option<Decimal>, RowError>
Source§fn get_string(&self, column: &str) -> Result<String, RowError>
fn get_string(&self, column: &str) -> Result<String, RowError>
Get a string column value as owned (for cases where ownership is needed).
Source§fn get_string_opt(&self, column: &str) -> Result<Option<String>, RowError>
fn get_string_opt(&self, column: &str) -> Result<Option<String>, RowError>
Get an optional string as owned.
Source§fn get_cow_str(&self, column: &str) -> Result<Cow<'_, str>, RowError>
fn get_cow_str(&self, column: &str) -> Result<Cow<'_, str>, RowError>
Get column value as a Cow, borrowing when possible.
Auto Trait Implementations§
impl Freeze for SqliteRowRef
impl RefUnwindSafe for SqliteRowRef
impl Send for SqliteRowRef
impl Sync for SqliteRowRef
impl Unpin for SqliteRowRef
impl UnsafeUnpin for SqliteRowRef
impl UnwindSafe for SqliteRowRef
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