Make euph_trees a temporary database
This commit is contained in:
parent
f272bc6dcb
commit
ad3a67cdc3
3 changed files with 31 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
mod euph;
|
||||
mod migrate;
|
||||
mod prepare;
|
||||
|
||||
use std::path::Path;
|
||||
use std::{fs, thread};
|
||||
|
|
@ -70,6 +71,7 @@ pub fn launch(path: &Path) -> rusqlite::Result<Vault> {
|
|||
conn.pragma_update(None, "trusted_schema", false)?;
|
||||
|
||||
migrate::migrate(&mut conn)?;
|
||||
prepare::prepare(&mut conn)?;
|
||||
|
||||
let (tx, rx) = mpsc::unbounded_channel();
|
||||
thread::spawn(move || run(conn, rx));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue