Expand description
Database lifecycle: extension schema installation, migrations, and connection/schema validation.
Re-exports the schema installers, the MigrationService and its result
and status types, and the standalone validation helpers
(validate_database_connection, validate_write_pool_is_primary,
validate_table_exists, validate_column_exists).
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.
Structs§
- Applied
Migration - A recorded migration.
- Baseline
Stamp - One
extension_migrationsrow recording a migration as applied without having executed it. - Bootstrap
Lock Guard - Session-pinned advisory lock serialising concurrent bootstraps.
- Checksum
Drift - Deferred
Foreign Key - Extension
Migration Status - Foreign
KeyDrift - Freshness
Check - Mark
Applied Outcome - Migration
Config - Migration
Result - Migration
Service - Migration
Status - Orphaned
Migration - An applied migration whose slot the extension no longer declares at all.
- Pending
Migration - Repair
Result - Replica
Status - Schema
Install Report - What
install_extension_schemas*applied and what it could not. - Slot
Collision - An applied migration whose slot is now occupied by a differently-named file.
- Split
Create Table - Tombstoned
Slot - A slot declared spent by a
.tombstonefile.