Skip to main content

Module snapshot

Module snapshot 

Source
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§

CheckConstraintSnapshot
Snapshot of a check constraint
ColumnSnapshot
Snapshot of a single column
ForeignKeySnapshot
Snapshot of a foreign key
FunctionSnapshot
Snapshot of a function/procedure
IndexSnapshot
Snapshot of an index
PrimaryKeySnapshot
Snapshot of a primary key
SchemaSnapshot
A normalized snapshot of a database schema
TableSnapshot
Snapshot of a single table
TypeSnapshot
Snapshot of a custom type (enum, composite, etc.)
UniqueConstraintSnapshot
Snapshot of a unique constraint
ViewSnapshot
Snapshot of a view

Traits§

SnapshotStore
Trait for storing and retrieving schema snapshots

Functions§

calculate_version_hash
Calculate a deterministic hash for a snapshot