daily-aujourdhui/examples/playground.rs
Lucien Cartier-Tilet e868891d26
Some checks failed
CI / Check Style (push) Successful in 1m37s
CI / Run Clippy (push) Successful in 3m11s
CI / Run Tests (push) Failing after 5m9s
style: format Rust source code
2024-12-05 02:05:45 +01:00

22 lines
696 B
Rust

use daily_aujourdhui::app::App;
#[allow(unused_imports)]
use loco_rs::{cli::playground, prelude::*};
#[tokio::main]
async fn main() -> loco_rs::Result<()> {
let _ctx = playground::<App>().await?;
// let active_model: articles::ActiveModel = ActiveModel {
// title: Set(Some("how to build apps in 3 steps".to_string())),
// content: Set(Some("use Loco: https://loco.rs".to_string())),
// ..Default::default()
// };
// active_model.insert(&ctx.db).await.unwrap();
// let res = articles::Entity::find().all(&ctx.db).await.unwrap();
// println!("{:?}", res);
println!("welcome to playground. edit me at `examples/playground.rs`");
Ok(())
}