Skip to main content

max / makenotwork

1.2 KB · 48 lines History Blame Raw
1 //! SQLite persistence, schema, health checks, test runs, and peer data.
2 //!
3 //! Uses a migration versioning system: each schema change is a numbered migration
4 //! stored in [`MIGRATIONS`]. On startup, [`run_migrations`] checks the current
5 //! version and runs any pending migrations. Existing databases (pre-migration)
6 //! are detected by the presence of the `health_checks` table and marked as v1.
7
8 use sqlx::sqlite::{SqliteConnectOptions, SqlitePool, SqlitePoolOptions};
9 use std::path::Path;
10 use std::str::FromStr;
11
12 use crate::error::Result;
13 use crate::types::{
14 BackupCheckResult, CorsCheckResult, DnsCheckResult, HealthDetails, HealthSnapshot,
15 HealthStatus, ScanPipelineCheckResult, TestDetail, TestRun, TestRunId, TestSummary, TlsStatus,
16 WhoisResult,
17 };
18
19 mod alerts;
20 mod backup;
21 mod cors;
22 mod dns;
23 mod health;
24 mod incidents;
25 mod maintenance;
26 mod migrations;
27 mod peers;
28 mod routes;
29 mod scan_pipeline;
30 mod test_runs;
31 mod tls;
32 mod whois;
33
34 pub use alerts::*;
35 pub use backup::*;
36 pub use cors::*;
37 pub use dns::*;
38 pub use health::*;
39 pub use incidents::*;
40 pub use maintenance::*;
41 pub use migrations::*;
42 pub use peers::*;
43 pub use routes::*;
44 pub use scan_pipeline::*;
45 pub use test_runs::*;
46 pub use tls::*;
47 pub use whois::*;
48