Refactor SQL queries into centralized module

- Moved various SQL query strings from individual worker files into a new `sql.rs` module for better organization and reusability.
- Updated `events.rs`, `underground.rs`, and `weather.rs` to use the centralized SQL queries.
- Removed redundant query definitions from `events.rs`, `underground.rs`, and `weather.rs`.
This commit is contained in:
Torsten Schulz (local)
2025-12-12 15:18:30 +01:00
parent eab46f5cdc
commit a9d490ce38
7 changed files with 401 additions and 667 deletions

View File

@@ -11,6 +11,7 @@ mod user_character;
mod transport;
mod weather;
mod events;
mod sql;
pub use base::Worker;
pub use crate::db::ConnectionPool;