Expand description
Database schema versioning and migrations.
Structs§
- Migration
- A single migration step.
- Migration
Result - Result of running migrations.
Constants§
- CURRENT_
SCHEMA_ VERSION - The current schema version supported by this build.
Functions§
- check_
compatibility - Check if the database is compatible with this version of keep.
- initialize_
schema - Initialize the schema version for a new database.
- needs_
migration - Check if migrations are needed.
- read_
schema_ version - Read the schema version from the database.
- run_
migrations - Run all pending migrations.
- write_
schema_ version - Write the schema version to the database.
Type Aliases§
- Migration
Fn - A migration function that transforms the database schema.