2026-05-05 18:27:36 +08:00
|
|
|
//! Runtime data access for Aether.
|
|
|
|
|
//!
|
2026-05-08 00:18:12 +08:00
|
|
|
//! This crate contains concrete database clients, repository
|
2026-05-05 18:27:36 +08:00
|
|
|
//! implementations, migration/backfill/export workflows, and the backend
|
|
|
|
|
//! composition layer. Shared repository contracts that other crates compile
|
|
|
|
|
//! against live in `aether-data-contracts`.
|
|
|
|
|
//!
|
|
|
|
|
//! See `crates/aether-data/README.md` for the layer map and SQL driver policy.
|
|
|
|
|
|
|
|
|
|
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-05-05 18:27:36 +08:00
|
|
|
pub use backend::{
|
2026-05-08 00:18:12 +08:00
|
|
|
DataBackends, DataLeaseBackends, DataReadRepositories, DataTransactionBackends,
|
|
|
|
|
DataWriteRepositories, PostgresBackend,
|
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::{
|
|
|
|
|
DatabaseMaintenanceSummary, DatabasePoolSummary, StatsDailyAggregationInput,
|
|
|
|
|
StatsDailyAggregationSummary, StatsHourlyAggregationInput, StatsHourlyAggregationSummary,
|
|
|
|
|
WalletDailyUsageAggregationInput, WalletDailyUsageAggregationResult,
|
|
|
|
|
};
|