feat: use data file as db in .cache
This commit is contained in:
parent
1ccaab9578
commit
122643c630
2 changed files with 2 additions and 2 deletions
|
@ -16,5 +16,5 @@ mkShell rec {
|
||||||
sqlite
|
sqlite
|
||||||
] ++ additionalBuildInputs;
|
] ++ additionalBuildInputs;
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||||
DATABASE_URL = "sqlite:testing.db";
|
DATABASE_URL = "sqlite://.cache/data";
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ impl AppState {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
pool: SqlitePool::connect_lazy_with(
|
pool: SqlitePool::connect_lazy_with(
|
||||||
SqliteConnectOptions::from_str("sqlite:testing.db")
|
SqliteConnectOptions::from_str("sqlite://.cache/data")
|
||||||
.expect("Invalid Database String"),
|
.expect("Invalid Database String"),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue