2023-06-06 10:27:02 -04:00
|
|
|
#![feature(default_free_fn)]
|
|
|
|
mod db;
|
|
|
|
mod error;
|
2023-06-06 11:27:37 -04:00
|
|
|
mod migrator;
|
2023-06-06 10:27:02 -04:00
|
|
|
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:?}"))
|
|
|
|
}
|