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

Method query_one

sea-orm-migration/src/connection.rs:36–41  ·  view source on GitHub ↗
(&self, stmt: Statement)

Source from the content-addressed store, hash-verified

34 }
35
36 async fn query_one(&self, stmt: Statement) -> Result<Option<QueryResult>, DbErr> {
37 match self {
38 SchemaManagerConnection::Connection(conn) => conn.query_one(stmt).await,
39 SchemaManagerConnection::Transaction(trans) => trans.query_one(stmt).await,
40 }
41 }
42
43 async fn query_all(&self, stmt: Statement) -> Result<Vec<QueryResult>, DbErr> {
44 match self {

Callers 4

has_columnMethod · 0.45
has_indexMethod · 0.45
has_tableFunction · 0.45

Calls

no outgoing calls

Tested by 1