Struct sea_orm::QueryResult
source · pub struct QueryResult { /* private fields */ }
Expand description
Defines the result of a query operation on a Model
Implementations§
source§impl QueryResult
impl QueryResult
sourcepub fn try_get_by<T, I>(&self, index: I) -> Result<T, DbErr>where
T: TryGetable,
I: ColIdx,
pub fn try_get_by<T, I>(&self, index: I) -> Result<T, DbErr>where
T: TryGetable,
I: ColIdx,
Get a value from the query result with an ColIdx
sourcepub fn try_get<T>(&self, pre: &str, col: &str) -> Result<T, DbErr>where
T: TryGetable,
pub fn try_get<T>(&self, pre: &str, col: &str) -> Result<T, DbErr>where
T: TryGetable,
Get a value from the query result with prefixed column name
sourcepub fn try_get_by_index<T>(&self, idx: usize) -> Result<T, DbErr>where
T: TryGetable,
pub fn try_get_by_index<T>(&self, idx: usize) -> Result<T, DbErr>where
T: TryGetable,
Get a value from the query result based on the order in the select expressions
sourcepub fn try_get_many<T>(&self, pre: &str, cols: &[String]) -> Result<T, DbErr>where
T: TryGetableMany,
pub fn try_get_many<T>(&self, pre: &str, cols: &[String]) -> Result<T, DbErr>where
T: TryGetableMany,
Get a tuple value from the query result with prefixed column name
sourcepub fn try_get_many_by_index<T>(&self) -> Result<T, DbErr>where
T: TryGetableMany,
pub fn try_get_many_by_index<T>(&self) -> Result<T, DbErr>where
T: TryGetableMany,
Get a tuple value from the query result based on the order in the select expressions
Trait Implementations§
source§impl Debug for QueryResult
impl Debug for QueryResult
source§impl From<MySqlRow> for QueryResult
impl From<MySqlRow> for QueryResult
source§fn from(row: MySqlRow) -> QueryResult
fn from(row: MySqlRow) -> QueryResult
Converts to this type from the input type.
source§impl From<PgRow> for QueryResult
impl From<PgRow> for QueryResult
source§fn from(row: PgRow) -> QueryResult
fn from(row: PgRow) -> QueryResult
Converts to this type from the input type.
source§impl From<ProxyRow> for QueryResult
Available on crate feature proxy
only.
impl From<ProxyRow> for QueryResult
Available on crate feature
proxy
only.source§impl From<SqliteRow> for QueryResult
impl From<SqliteRow> for QueryResult
source§fn from(row: SqliteRow) -> QueryResult
fn from(row: SqliteRow) -> QueryResult
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
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