Skip to main content

Crate appstruct_migrate

Crate appstruct_migrate 

Source
Expand description

Database schema extraction, diffing, risk classification, and SQL planning.

Structs§

ApplyReport
ChangeRisk
ColumnSchema
DatabaseSchema
ForeignKeySchema
IndexSchema
IntrospectedColumn
IntrospectedForeignKey
IntrospectedIndex
IntrospectedSchema
IntrospectedTable
MigrationLint
MigrationPlan
MigrationStatus
PlannedChange
SeedSchema
SeedValueSchema
TableSchema
UniqueConstraintSchema

Enums§

DatabaseType
DriftStatus
ExecutionRisk
LintSeverity
MigrationError
SchemaChange
SchemaRisk

Constants§

MIN_COMPATIBLE_SCHEMA_VERSION
SCHEMA_VERSION

Functions§

apply_project
Apply every pending disk migration and verify the resulting PostgreSQL schema.
connect_database
Connect to PostgreSQL using the same TLS policy as migration commands.
diff
extract
Extract a database schema from semantically valid IR.
from_json
Parse a schema snapshot.
initial_migration
inspect_database_schema
Inspect one PostgreSQL schema without changing database state.
lint_plan
migration_sql
Render SQL for an automatically applicable migration plan.
stamp_schema_checksum
status_project
Inspect disk migrations, history, and database schema state.
to_json
Serialize a canonical schema snapshot.