Schema diff, SHA-256 drift detection, transactional migrations, and idempotent seeds for unmbt/ciallo-orm
pub(all) struct ForeignKeyDef {
name : String
columns : Array[String]
ref_table : String
ref_columns : Array[String]
on_delete : ForeignKeyAction
on_update : ForeignKeyAction
} derive(Eq, Debug, FromJson, ToJson)fn ForeignKeyDef::ForeignKeyDef(name~ : String, columns~ : Array[String], ref_table~ : String, ref_columns~ : Array[String], on_delete? : ForeignKeyAction, on_update? : ForeignKeyAction) -> ForeignKeyDefasync fn apply_migrations(driver : &SqlDriver, migrations : Array[MigrationFile]) -> Array[MigrationRecord]fn diff_schemas(prev : SchemaSnapshot, next : SchemaSnapshot, dialect? : DialectKind) -> SchemaDiffResultasync fn migration_status(driver : &SqlDriver, migrations : Array[MigrationFile]) -> Array[MigrationStatusEntry]async fn rollback_migrations(driver : &SqlDriver, migrations : Array[MigrationFile], steps? : Int) -> Array[MigrationRecord]fn sha256_str_hex(s : StringView) -> StringInstall
Download zipSchema diff, SHA-256 drift detection, transactional migrations, and idempotent seeds for unmbt/ciallo-orm