mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
create parental app mod
This commit is contained in:
parent
2461f2a0fb
commit
b2aa3af46a
37 changed files with 176 additions and 111 deletions
24
src/app/browser/db.rs
Normal file
24
src/app/browser/db.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* @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