pub struct SqlxRowRef { /* private fields */ }Expand description
A driver-agnostic decoded row produced by the sqlx engine. Holds owned values keyed by column name so callers can access them after the row itself has been dropped.
Implementations§
Source§impl SqlxRowRef
impl SqlxRowRef
Trait Implementations§
Source§impl RowRef for SqlxRowRef
impl RowRef for SqlxRowRef
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_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>
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.
fn get_naive_datetime(&self, column: &str) -> Result<NaiveDateTime, RowError>
fn get_naive_datetime_opt( &self, column: &str, ) -> Result<Option<NaiveDateTime>, RowError>
fn get_naive_date(&self, column: &str) -> Result<NaiveDate, RowError>
fn get_naive_date_opt( &self, column: &str, ) -> Result<Option<NaiveDate>, RowError>
fn get_naive_time(&self, column: &str) -> Result<NaiveTime, RowError>
fn get_naive_time_opt( &self, column: &str, ) -> Result<Option<NaiveTime>, RowError>
fn get_decimal(&self, column: &str) -> Result<Decimal, RowError>
fn get_decimal_opt(&self, column: &str) -> Result<Option<Decimal>, RowError>
Auto Trait Implementations§
impl Freeze for SqlxRowRef
impl RefUnwindSafe for SqlxRowRef
impl Send for SqlxRowRef
impl Sync for SqlxRowRef
impl Unpin for SqlxRowRef
impl UnsafeUnpin for SqlxRowRef
impl UnwindSafe for SqlxRowRef
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more