Skip to main content

Module lifecycle

Module lifecycle 

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

AppliedMigration
BaselineStamp
One extension_migrations row recording a migration as applied without having executed it.
ChecksumDrift
ExtensionMigrationStatus
FreshnessCheck
MarkAppliedOutcome
MigrationConfig
MigrationResult
MigrationService
MigrationStatus
OrphanedMigration
An applied migration whose slot the extension no longer declares at all.
PendingMigration
RepairResult
ReplicaStatus
SlotCollision
An applied migration whose slot is now occupied by a differently-named file.
TombstonedSlot
A slot declared spent by a .tombstone file.

Functions§

install_extension_schemas
install_extension_schemas_full
install_extension_schemas_with_config
replica_status
validate_column_exists
validate_database_connection
validate_table_exists
validate_write_pool_is_primary