feat: use data file as db in .cache

This commit is contained in:
Zynh Ludwig 2024-11-21 16:43:54 -08:00
parent 1ccaab9578
commit 122643c630
2 changed files with 2 additions and 2 deletions

View file

@ -16,5 +16,5 @@ mkShell rec {
sqlite
] ++ additionalBuildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
DATABASE_URL = "sqlite:testing.db";
DATABASE_URL = "sqlite://.cache/data";
}

View file

@ -55,7 +55,7 @@ impl AppState {
pub fn new() -> Self {
Self {
pool: SqlitePool::connect_lazy_with(
SqliteConnectOptions::from_str("sqlite:testing.db")
SqliteConnectOptions::from_str("sqlite://.cache/data")
.expect("Invalid Database String"),
),
}