mithril_aggregator/dependency_injection/containers/mod.rs
1mod genesis;
2mod serve;
3
4pub use genesis::GenesisCommandDependenciesContainer;
5pub use serve::*;
6
7use std::sync::Arc;
8
9use mithril_persistence::sqlite::SqliteConnection;
10
11/// Dependencies container for the database commands
12pub struct DatabaseCommandDependenciesContainer {
13 /// Main database connection
14 pub main_db_connection: Arc<SqliteConnection>,
15}
16
17/// Dependencies container for the tools commands
18pub struct ToolsCommandDependenciesContainer {
19 /// Database connection
20 pub db_connection: Arc<SqliteConnection>,
21}