Going somewhere... but no idea where.

This commit is contained in:
didier amyot committed 2023-02-25 17:03:52 -05:00
1 parent 0bbe716d8d
commit 89597dcac2
7 files changed
+110 -10

No files matched your search

+18
View File
@@ -1 +1,19 @@
use rusqlite::Connection;
use crate::services::_users::UserService;
mod _transactions;
mod _users;
pub struct ServiceFactory<'a> {
conn: &'a Connection,
}
impl ServiceFactory<'_> {
pub fn new(conn: &Connection) -> ServiceFactory {
ServiceFactory { conn }
}
pub fn get_user_service(&self) -> UserService {
UserService::new(self.conn)
}
}