persistence.rs

 1use std::path::PathBuf;
 2
 3use db::connection;
 4use indoc::indoc;
 5use lazy_static::lazy_static;
 6use project::WorktreeId;
 7use sqlez::domain::Domain;
 8use workspace::{ItemId, Workspace};
 9
10use crate::Editor;
11
12connection!(DB: EditorDb<(Workspace, Editor)>);
13
14impl Domain for Editor {
15    fn name() -> &'static str {
16        "editor"
17    }
18
19    fn migrations() -> &'static [&'static str] {
20        &[indoc! {"
21                
22        "}]
23    }
24}
25
26impl EditorDb {
27    fn get_path(_item_id: ItemId, _workspace_id: WorktreeId) -> PathBuf {
28        unimplemented!();
29    }
30}