Yoda/src/browser/db.rs
2024-09-22 17:34:22 +03:00

24 lines
505 B
Rust

use std::sync::Arc;
pub struct Browser {
connection: Arc<sqlite::Connection>,
}
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) {}
}