MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / try_get_by

Method try_get_by

src/executor/query.rs:77–83  ·  view source on GitHub ↗

Get a value from the query result with an ColIdx

(&self, index: I)

Source from the content-addressed store, hash-verified

75impl QueryResult {
76 /// Get a value from the query result with an ColIdx
77 pub fn try_get_by<T, I>(&self, index: I) -> Result<T, DbErr>
78 where
79 T: TryGetable,
80 I: ColIdx,
81 {
82 Ok(T::try_get_by(self, index)?)
83 }
84
85 /// Get a value from the query result with an ColIdx
86 pub fn try_get_by_nullable<T, I>(&self, index: I) -> Result<T, TryGetError>

Callers 1

get_versionFunction · 0.45

Calls 9

sqlx_error_to_query_errFunction · 0.85
err_null_idx_colFunction · 0.85
type_errFunction · 0.85
as_sqlx_mysql_indexMethod · 0.80
as_sqlx_sqlite_indexMethod · 0.80
into_iterMethod · 0.80
newFunction · 0.50
try_getMethod · 0.45

Tested by

no test coverage detected