mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
feat(data): complete portable SQL backend parity
Align MySQL and SQLite schemas, migrations, usage, stats, export, and backfill behavior with the shared data contracts. Extend gateway startup and maintenance support across all SQL drivers.
This commit is contained in:
@@ -1902,15 +1902,22 @@ fn lifecycle_backfills_are_partitioned_by_driver() {
|
||||
));
|
||||
for required in [
|
||||
format!("use crate::driver::{driver}::{pool}"),
|
||||
format!("sqlx::migrate!(\"./backfills/{driver}\")"),
|
||||
"static BACKFILL_MIGRATOR".to_string(),
|
||||
"ENSURE_SCHEMA_BACKFILLS_TABLE_SQL".to_string(),
|
||||
"LIST_APPLIED_BACKFILLS_SQL".to_string(),
|
||||
"INSERT_APPLIED_BACKFILL_SQL".to_string(),
|
||||
"pub async fn run_backfills".to_string(),
|
||||
"pub async fn pending_backfills".to_string(),
|
||||
"ensure_schema_backfills_table".to_string(),
|
||||
"validate_applied_backfills".to_string(),
|
||||
] {
|
||||
assert!(
|
||||
source.contains(&required),
|
||||
"backfill/{driver}.rs should own {required}"
|
||||
);
|
||||
}
|
||||
for forbidden in ["PgPool", "BACKFILL_MIGRATOR", "schema_backfills"] {
|
||||
for forbidden in ["PgPool", "PgConnection", "crate::driver::postgres"] {
|
||||
assert!(
|
||||
!source.contains(forbidden),
|
||||
"backfill/{driver}.rs should not depend on PostgreSQL via {forbidden}"
|
||||
|
||||
Reference in New Issue
Block a user