mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
draft db actions
This commit is contained in:
parent
ad3f6083e1
commit
17dedbd36e
3 changed files with 52 additions and 31 deletions
|
|
@ -1,24 +0,0 @@
|
|||
/* @TODO
|
||||
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) {}
|
||||
}*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue