Yoda/src/browser/db.rs

18 lines
301 B
Rust
Raw Normal View History

2024-09-22 13:04:27 +03:00
use std::sync::Arc;
2024-09-22 13:17:18 +03:00
pub struct Browser {
2024-09-22 13:23:46 +03:00
connection: Arc<sqlite::Connection>,
2024-09-22 13:04:27 +03:00
}
2024-09-22 13:17:18 +03:00
impl Browser {
2024-09-22 13:04:27 +03:00
fn init(&self) {}
fn save(&self) {}
fn restore(&self) {}
}
2024-09-22 13:23:46 +03:00
pub fn new(connection: Arc<sqlite::Connection>) -> Browser {
let this = Browser { connection };
this.init();
this
}