Skip to main content

Module db

Module db 

Source
Expand description

db CLI command group: schema inspection, queries, and migration tooling.

execute runs commands against the invocation’s CommandContext: migration variants are routed to the profile or standalone dispatcher depending on whether the invocation is database-scoped, and the remaining subcommands share the context’s pool. Subcommands cover ad-hoc queries, schema introspection, migration apply/down/repair, and the schema doctor.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Modules§

helpers
Shared db-command helpers: known tables, byte formatting.

Structs§

AppliedMigrationInfo
ColumnInfo
DbAssignAdminOutput
DbCountOutput
DbDescribeOutput
DbExecuteOutput
DbIndexesOutput
DbInfoOutput
DbMigrateDownOutput
DbMigrateOutput
DbSizeOutput
DbStatusOutput
DbTablesOutput
ExtensionMigrationStatus
IndexInfo
MigrateMarkAppliedOutput
MigratePlanOutput
MigrateRepairOutput
MigrateStatusOutput
MigrateStatusRow
MigrationCollisionInfo
A recorded migration row whose slot the tree now fills with a different migration — the number was reused, which repair must refuse to reconcile.
MigrationDriftInfo
MigrationHistoryOutput
MigrationStatusOutput
PendingMigrationInfo
TableIndexInfo
TableInfo
TableSizeInfo

Enums§

DbCommands
MigrationsCommands

Functions§

execute