use render::App; use sqlx::{self, Connection, SqliteConnection}; use std::error::Error; mod tui; mod render; mod model; #[tokio::main] async fn main() -> Result<(), Box> { let mut conn = SqliteConnection::connect("sqlite::memory:").await?; let mut terminal = tui::init()?; let res = App::default().run(&mut terminal); tui::restore()?; res?; Ok(()) }