init separated db component

This commit is contained in:
yggverse 2024-09-22 13:04:27 +03:00
parent 599b03e551
commit 2a7d7c5c46
2 changed files with 20 additions and 3 deletions

11
src/browser/database.rs Normal file
View file

@ -0,0 +1,11 @@
use std::sync::Arc;
pub struct Database {
pub connection: Arc<sqlite::Connection>,
}
impl Database {
fn init(&self) {}
fn save(&self) {}
fn restore(&self) {}
}