deactivate welcome dialog, auto-generate profile on first launch, remove extra references, draft bookmarks model

This commit is contained in:
yggverse 2024-11-14 06:00:41 +02:00
parent f81e496fa4
commit b441a681f7
7 changed files with 75 additions and 25 deletions

View file

@ -1,6 +1,22 @@
mod database;
use database::Database;
use sqlite::Transaction;
use sqlite::{Connection, Transaction};
use std::{rc::Rc, sync::RwLock};
pub struct Bookmark {
pub database: Rc<Database>,
}
impl Bookmark {
// Constructors
pub fn new(connection: Rc<RwLock<Connection>>, profile_id: i64) -> Self {
Self {
database: Rc::new(Database::new(connection, profile_id)),
}
}
}
// Tools