Files
Aether/crates/aether-data/runtime/src/lib.rs
T

39 lines
1.4 KiB
Rust
Raw Normal View History

2026-05-05 18:27:36 +08:00
//! Runtime data access for Aether.
//!
//! This crate is the runtime composition facade. It selects concrete SQL
//! adapters, owns in-memory repositories and maintenance/backfill/export
//! workflows, and exposes application-facing backend handles. Shared repository
//! contracts live in `aether-data-contracts`; request-path SQL and executable
//! migrations live in the driver adapter crates.
2026-05-05 18:27:36 +08:00
//!
//! See `crates/aether-data/runtime/README.md` for the layer map and SQL driver policy.
2026-05-05 18:27:36 +08:00
pub mod backend;
mod config;
2026-05-05 18:27:36 +08:00
mod database;
pub mod driver;
mod error;
2026-05-05 18:27:36 +08:00
pub mod lifecycle;
pub mod maintenance;
pub mod repository;
#[cfg(feature = "mysql")]
pub use backend::MysqlBackend;
#[cfg(feature = "postgres")]
pub use backend::PostgresBackend;
#[cfg(feature = "sqlite")]
pub use backend::SqliteBackend;
2026-05-05 18:27:36 +08:00
pub use backend::{
2026-05-08 00:18:12 +08:00
DataBackends, DataLeaseBackends, DataReadRepositories, DataTransactionBackends,
DataWriteRepositories,
};
pub use config::DataLayerConfig;
2026-05-05 18:27:36 +08:00
pub use database::{DatabaseDriver, SqlDatabaseConfig, SqlPoolConfig, DEFAULT_SQLITE_DATABASE_URL};
pub use error::DataLayerError;
2026-05-05 18:27:36 +08:00
pub use maintenance::{
DatabaseMaintenanceSummary, DatabasePoolSummary, DatabasePostgresActivityGroup,
DatabasePostgresObservabilitySnapshot, StatsDailyAggregationInput,
2026-05-05 18:27:36 +08:00
StatsDailyAggregationSummary, StatsHourlyAggregationInput, StatsHourlyAggregationSummary,
WalletDailyUsageAggregationInput, WalletDailyUsageAggregationResult,
};