refactor(structure): reorganize codebase into domain-focused modules
This commit is contained in:
@@ -6,8 +6,8 @@ use crate::Config;
|
||||
use crate::cli::robot::RobotMeta;
|
||||
use crate::core::db::create_connection;
|
||||
use crate::core::error::Result;
|
||||
use crate::core::events_db::{self, EventCounts};
|
||||
use crate::core::paths::get_db_path;
|
||||
use crate::ingestion::storage::events::{EventCounts, count_events};
|
||||
|
||||
pub struct CountResult {
|
||||
pub entity: String,
|
||||
@@ -208,7 +208,7 @@ struct CountJsonBreakdown {
|
||||
pub fn run_count_events(config: &Config) -> Result<EventCounts> {
|
||||
let db_path = get_db_path(config.storage.db_path.as_deref());
|
||||
let conn = create_connection(&db_path)?;
|
||||
events_db::count_events(&conn)
|
||||
count_events(&conn)
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user