separate features to submodules

This commit is contained in:
yggverse 2024-09-22 17:34:22 +03:00
parent 80fecec656
commit c38363b8cc
5 changed files with 107 additions and 65 deletions

View file

@ -5,13 +5,19 @@ pub struct Browser {
}
impl Browser {
// Construct new browser DB (connection)
pub fn new(connection: Arc<sqlite::Connection>) -> Browser {
let this = Self { connection };
this.init();
this
}
// Create browser table in DB if not exist yet
fn init(&self) {}
// Save active browser session to DB
fn save(&self) {}
// Restore previous browser session from DB
fn restore(&self) {}
}
pub fn new(connection: Arc<sqlite::Connection>) -> Browser {
let this = Browser { connection };
this.init();
this
}