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

Function main

issues/892/src/main.rs:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4#[tokio::main]
5async fn main() -> Result<(), DbErr> {
6 let db = Database::connect("sqlite::memory:").await?;
7
8 tokio::spawn(async move {
9 let _cakes = cake::Entity::find()
10 .join_rev(JoinType::InnerJoin, cake_filling::Relation::Cake.def())
11 .all(&db)
12 .await
13 .unwrap();
14 })
15 .await
16 .unwrap();
17
18 Ok(())
19}

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.80
join_revMethod · 0.80
allMethod · 0.45
defMethod · 0.45

Tested by

no test coverage detected