Skip to main content

schedr_db/
lib.rs

1//! Database schema, migrations and queries of schedr (SQLite and Postgres).
2//!
3//! All persistent state lives in the database (see archive/PROJECT.md, State storage). The schema
4//! is upgraded by `schedr db migrate`; the roles refuse to start against an outdated schema.
5
6pub mod attempts;
7pub mod backend;
8pub mod backfills;
9pub mod changes;
10pub mod commands;
11pub mod dags;
12pub mod database;
13#[cfg(any(test, feature = "testing"))]
14mod faults;
15pub mod instances;
16pub mod lease;
17pub mod named_events;
18pub mod nodes;
19pub mod notifications;
20pub mod probe;
21mod query;
22pub mod reads;
23pub mod retention;
24pub mod run_of;
25pub mod runs;
26pub mod samples;
27mod scope;
28pub mod secrets;
29pub mod status;
30pub mod strikes;
31pub mod task_flow;
32pub mod task_memory;
33pub mod triggers;
34pub mod workers;
35
36pub use backend::{Backend, UnsupportedUrl, database_place, redact_password};
37pub use database::{Database, DbError, Pool};
38pub use query::db_time;
39pub use status::SchemaStatus;