mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
move static methods out of main db struct implementation
This commit is contained in:
parent
5b3e091f2b
commit
da33fa053e
28 changed files with 828 additions and 931 deletions
|
|
@ -2,10 +2,6 @@ mod bookmark;
|
|||
mod history;
|
||||
mod identity;
|
||||
|
||||
use bookmark::Bookmark;
|
||||
use history::History;
|
||||
use identity::Identity;
|
||||
|
||||
use sqlite::{Connection, Error};
|
||||
use std::{
|
||||
path::Path,
|
||||
|
|
@ -56,9 +52,9 @@ fn init(mut connection: RwLockWriteGuard<'_, Connection>) -> Result<(), Error> {
|
|||
let transaction = connection.transaction()?;
|
||||
|
||||
// Init profile components
|
||||
Bookmark::init(&transaction)?;
|
||||
History::init(&transaction)?;
|
||||
Identity::init(&transaction)?;
|
||||
bookmark::init(&transaction)?;
|
||||
history::init(&transaction)?;
|
||||
identity::init(&transaction)?;
|
||||
|
||||
// Apply changes
|
||||
transaction.commit()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue