Expand description
Developer: s4gor Github: https://github.com/s4gor
Schema snapshot system
Snapshots are normalized, deterministic representations of a schema at a point in time. They enable:
- Diffing schema version A vs B
- Storing expected schema state
- Version control integration
- Deterministic hash-based versioning
Structs§
- Check
Constraint Snapshot - Snapshot of a check constraint
- Column
Snapshot - Snapshot of a single column
- Foreign
KeySnapshot - Snapshot of a foreign key
- Function
Snapshot - Snapshot of a function/procedure
- Index
Snapshot - Snapshot of an index
- Primary
KeySnapshot - Snapshot of a primary key
- Schema
Snapshot - A normalized snapshot of a database schema
- Table
Snapshot - Snapshot of a single table
- Type
Snapshot - Snapshot of a custom type (enum, composite, etc.)
- Unique
Constraint Snapshot - Snapshot of a unique constraint
- View
Snapshot - Snapshot of a view
Traits§
- Snapshot
Store - Trait for storing and retrieving schema snapshots
Functions§
- calculate_
version_ hash - Calculate a deterministic hash for a snapshot