mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
main as user.db, then attach readonly db's
This commit is contained in:
1 parent
d96346bfea
commit
fa5bfb56b0
11 files changed
+526
-435
No files matched your search
@@ -14,9 +14,9 @@ pub fn run() {
|
||||
let app_dir = app.path().app_config_dir()?;
|
||||
create_dir_all(&app_dir)?;
|
||||
|
||||
// let db_path = app_dir.join("cjdic.db");
|
||||
let db_path = Path::new(r"D:\Projects\cjdic2\test.db");
|
||||
let service = AppService::new(&db_path)?;
|
||||
// db_path is app_dir;
|
||||
let db_dir = Path::new(r"D:\Projects\cjdic2\tmp\save-db");
|
||||
let service = AppService::new(&db_dir)?;
|
||||
app.manage(service);
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user