Skip to main content

max / makenotwork

1.4 KB · 55 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, CaBundleCheckResult, CorsCheckResult, DnsCheckResult, HealthDetails,
15 HealthSnapshot, HealthStatus, ScanPipelineCheckResult, SyncKitFleetCheckResult,
16 SystemdCheckResult, SystemdUnitSnapshot, TestDetail, TestRun, TestRunId, TestSummary,
17 TlsStatus, WhoisResult,
18 };
19
20 mod alerts;
21 mod backup;
22 mod ca_bundle;
23 mod cors;
24 mod dns;
25 mod health;
26 mod incidents;
27 mod maintenance;
28 mod migrations;
29 mod peers;
30 mod routes;
31 mod scan_pipeline;
32 mod synckit_fleet;
33 mod systemd;
34 mod test_runs;
35 mod tls;
36 mod whois;
37
38 pub use alerts::*;
39 pub use backup::*;
40 pub use ca_bundle::*;
41 pub use cors::*;
42 pub use dns::*;
43 pub use health::*;
44 pub use incidents::*;
45 pub use maintenance::*;
46 pub use migrations::*;
47 pub use peers::*;
48 pub use routes::*;
49 pub use scan_pipeline::*;
50 pub use synckit_fleet::*;
51 pub use systemd::*;
52 pub use test_runs::*;
53 pub use tls::*;
54 pub use whois::*;
55