test: see database path

This commit is contained in:
silver 2023-08-05 20:21:04 +01:00
parent 570c716bea
commit 6b901683da

View file

@ -38,6 +38,7 @@ pub struct Accounts {
pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
let database = format!("{}/{}", &config.home, &config.database);
println!("Database: {:?}", &database);
let pool = SqlitePoolOptions::new()
.max_connections(5)
.connect_with(SqliteConnectOptions::from_str(&format!("sqlite://{}", database))?.create_if_missing(true))