Merge pull request #1773 from zed-industries/rusqlite
Swap to sqlite for client persistence
This commit is contained in:
commit
da5203011c
12 changed files with 503 additions and 159 deletions
|
@ -52,11 +52,9 @@ fn main() {
|
|||
.or_else(|| app.platform().app_version().ok())
|
||||
.map_or("dev".to_string(), |v| v.to_string());
|
||||
init_panic_hook(app_version, http.clone(), app.background());
|
||||
let db = app.background().spawn(async move {
|
||||
project::Db::open(&*zed::paths::DB)
|
||||
.log_err()
|
||||
.unwrap_or_else(project::Db::null)
|
||||
});
|
||||
let db = app
|
||||
.background()
|
||||
.spawn(async move { project::Db::open(&*zed::paths::DB_DIR) });
|
||||
|
||||
load_embedded_fonts(&app);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue