mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 11:19:50 +08:00
Add multi-database data layer
Introduce aether-data-schema and driver-specific schema generation for Postgres, MySQL, and SQLite. Split data backends, lifecycle, repositories, and gateway runtime integration across database drivers. Verified with cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace.
This commit is contained in:
@@ -116,7 +116,7 @@ impl<'a> AdminAppState<'a> {
|
||||
self.app.mark_provider_key_rpm_reset(key_id, now_unix_secs)
|
||||
}
|
||||
|
||||
pub(crate) fn redis_kv_runner(&self) -> Option<aether_data::redis::RedisKvRunner> {
|
||||
pub(crate) fn redis_kv_runner(&self) -> Option<aether_data::driver::redis::RedisKvRunner> {
|
||||
self.app.redis_kv_runner()
|
||||
}
|
||||
|
||||
@@ -128,8 +128,8 @@ impl<'a> AdminAppState<'a> {
|
||||
self.app.provider_key_rpm_reset_at(key_id, now_unix_secs)
|
||||
}
|
||||
|
||||
pub(crate) fn has_postgres_pool(&self) -> bool {
|
||||
self.app.postgres_pool().is_some()
|
||||
pub(crate) fn has_wallet_data_writer(&self) -> bool {
|
||||
self.app.has_wallet_data_writer()
|
||||
}
|
||||
|
||||
pub(crate) fn mark_admin_monitoring_error_stats_reset(&self, now_unix_secs: u64) {
|
||||
|
||||
Reference in New Issue
Block a user