//! SQLite persistence, schema, health checks, test runs, and peer data. //! //! Uses a migration versioning system: each schema change is a numbered migration //! stored in [`MIGRATIONS`]. On startup, [`run_migrations`] checks the current //! version and runs any pending migrations. Existing databases (pre-migration) //! are detected by the presence of the `health_checks` table and marked as v1. use sqlx::sqlite::{SqliteConnectOptions, SqlitePool, SqlitePoolOptions}; use std::path::Path; use std::str::FromStr; use crate::error::Result; use crate::types::{ BackupCheckResult, CorsCheckResult, DnsCheckResult, HealthDetails, HealthSnapshot, HealthStatus, ScanPipelineCheckResult, TestDetail, TestRun, TestRunId, TestSummary, TlsStatus, WhoisResult, }; mod alerts; mod backup; mod cors; mod dns; mod health; mod incidents; mod maintenance; mod migrations; mod peers; mod routes; mod scan_pipeline; mod test_runs; mod tls; mod whois; pub use alerts::*; pub use backup::*; pub use cors::*; pub use dns::*; pub use health::*; pub use incidents::*; pub use maintenance::*; pub use migrations::*; pub use peers::*; pub use routes::*; pub use scan_pipeline::*; pub use test_runs::*; pub use tls::*; pub use whois::*;