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

31 lines
1.1 KiB
Rust
Raw Normal View History

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;
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;
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,
};
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, StatsDailyAggregationInput,
StatsDailyAggregationSummary, StatsHourlyAggregationInput, StatsHourlyAggregationSummary,
WalletDailyUsageAggregationInput, WalletDailyUsageAggregationResult,
};