mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-16 01:29:57 +00:00
24 lines
505 B
Rust
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) {}
|
|
}
|