12 lines
242 B
Rust
12 lines
242 B
Rust
|
#![feature(default_free_fn)]
|
||
|
mod db;
|
||
|
mod error;
|
||
|
use error::Result;
|
||
|
use sea_orm::Database;
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() -> Result<()> {
|
||
|
let db = Database::connect(db::connection_url()).await?;
|
||
|
Ok(println!("Hello, world! {db:?}"))
|
||
|
}
|