init: initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
use sqlx::SqlitePool;
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub struct AppState {
|
||||
pub db: SqlitePool,
|
||||
pub app_data_dir: PathBuf,
|
||||
}
|
||||
|
||||
impl AppState {
|
||||
pub fn new(db: SqlitePool, app_data_dir: PathBuf) -> Self {
|
||||
Self { db, app_data_dir }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user