mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-06 17:37:47 +08:00
Use PostgreSQL as the only database backend across runtime, schema tooling, installation, Compose, and CI. Update regression tests and reject removed drivers explicitly.
35 lines
1.3 KiB
Rust
35 lines
1.3 KiB
Rust
//! 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.
|
|
//!
|
|
//! See `crates/aether-data/runtime/README.md` for the layer map and SQL driver policy.
|
|
|
|
pub mod backend;
|
|
mod config;
|
|
mod database;
|
|
pub mod driver;
|
|
mod error;
|
|
pub mod lifecycle;
|
|
pub mod maintenance;
|
|
pub mod repository;
|
|
|
|
#[cfg(feature = "postgres")]
|
|
pub use backend::PostgresBackend;
|
|
pub use backend::{
|
|
DataBackends, DataLeaseBackends, DataReadRepositories, DataTransactionBackends,
|
|
DataWriteRepositories,
|
|
};
|
|
pub use config::DataLayerConfig;
|
|
pub use database::{DatabaseDriver, SqlDatabaseConfig, SqlPoolConfig};
|
|
pub use error::DataLayerError;
|
|
pub use maintenance::{
|
|
DatabaseMaintenanceSummary, DatabasePoolSummary, DatabasePostgresActivityGroup,
|
|
DatabasePostgresObservabilitySnapshot, StatsDailyAggregationInput,
|
|
StatsDailyAggregationSummary, StatsHourlyAggregationInput, StatsHourlyAggregationSummary,
|
|
WalletDailyUsageAggregationInput, WalletDailyUsageAggregationResult,
|
|
};
|