Skip to main content

Crate appstruct_migrate

Crate appstruct_migrate 

Source
Expand description

Database schema diffing, risk classification, and PostgreSQL migration execution.

Structs§

ApplyReport
BaselineStatus
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§

SCHEMA_VERSION

Functions§

apply_project
Apply every pending disk migration and verify the resulting PostgreSQL schema.
baseline_project
Register one canonical initial migration without executing its SQL or changing business rows.
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_baseline
Preview adoption of an existing database without writing files or database history.
inspect_database_schema
Inspect one PostgreSQL schema without changing database state.
inspect_schema_structure
Compare a proposed application’s structure against one schema using a read-only transaction. This does not validate or register migration history.
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.