summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 39e81c930d1fc213db2f22a147b96ff9dc9a8f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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<dyn Error>> {
    let mut conn = SqliteConnection::connect("sqlite::memory:").await?;

    let mut terminal = tui::init()?;
    let res = App::default().run(&mut terminal);
    tui::restore()?;

    res?;
    Ok(())
}