2026-05-05 18:27:36 +08:00
|
|
|
//! Runtime data access for Aether.
|
|
|
|
|
//!
|
2026-07-15 23:47:19 +08:00
|
|
|
//! 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
|
|
|
//!
|
2026-07-15 23:47:19 +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;
|
2026-03-24 15:12:56 +08:00
|
|
|
mod config;
|
2026-05-05 18:27:36 +08:00
|
|
|
mod database;
|
|
|
|
|
pub mod driver;
|
2026-03-24 15:12:56 +08:00
|
|
|
mod error;
|
2026-05-05 18:27:36 +08:00
|
|
|
pub mod lifecycle;
|
|
|
|
|
pub mod maintenance;
|
2026-03-24 15:12:56 +08:00
|
|
|
pub mod repository;
|
|
|
|
|
|
2026-07-15 23:47:19 +08:00
|
|
|
#[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,
|
2026-07-15 23:47:19 +08:00
|
|
|
DataWriteRepositories,
|
2026-03-24 15:12:56 +08:00
|
|
|
};
|
|
|
|
|
pub use config::DataLayerConfig;
|
2026-05-05 18:27:36 +08:00
|
|
|
pub use database::{DatabaseDriver, SqlDatabaseConfig, SqlPoolConfig, DEFAULT_SQLITE_DATABASE_URL};
|
2026-03-24 15:12:56 +08:00
|
|
|
pub use error::DataLayerError;
|
2026-05-05 18:27:36 +08:00
|
|
|
pub use maintenance::{
|
2026-06-30 16:54:58 +08:00
|
|
|
DatabaseMaintenanceSummary, DatabasePoolSummary, DatabasePostgresActivityGroup,
|
|
|
|
|
DatabasePostgresObservabilitySnapshot, StatsDailyAggregationInput,
|
2026-05-05 18:27:36 +08:00
|
|
|
StatsDailyAggregationSummary, StatsHourlyAggregationInput, StatsHourlyAggregationSummary,
|
|
|
|
|
WalletDailyUsageAggregationInput, WalletDailyUsageAggregationResult,
|
|
|
|
|
};
|