feat: add metadata catalog cleanup commands
This commit is contained in:
+10
-4
@@ -74,13 +74,19 @@ connector bindings.
|
||||
Configured databases use pure hierarchical navigation through `Overview`, `Tables`, and
|
||||
`Relationships`; a selected table has `Overview` and `Columns`. Physical membership, source
|
||||
comments, column types/default/nullability/PK positions, and constraint-level ordered FK pairs are
|
||||
immutable projections of the external schema. Curated and generated descriptions are editable;
|
||||
generated descriptions start null and AI generation/consolidation is deferred.
|
||||
projections of the external schema. They cannot be created, renamed, or structurally edited by
|
||||
hand, but administrators can explicitly clear catalog tables, columns, or relationships without
|
||||
touching the source database, binding, configuration, or secrets. Table deletion cascades through
|
||||
columns and relationships; table-scoped relationship cleanup includes incoming and outgoing
|
||||
relationships. Curated and generated descriptions are editable; generated descriptions start null
|
||||
and AI generation/consolidation is deferred.
|
||||
|
||||
Schema refresh is one durable asynchronous engine with database-table, database-column,
|
||||
selected-table-column, relationship, and full-database actions. Database-level menus expose the
|
||||
table, all-column, relationship, and full scopes separately; selecting tables exposes column
|
||||
synchronization for that subset. Runs have one-active-job-per-database exclusion, leases and
|
||||
synchronization plus manual column and relationship cleanup for that subset. Database selections
|
||||
also expose manual table and relationship cleanup. Cleanup selections are atomic and share the
|
||||
one-active-operation-per-database exclusion with synchronization. Runs have leases and
|
||||
restart recovery, atomic apply, destructive-diff confirmation with re-scan, cancellation before
|
||||
apply, retained history, and a live SSE log with polling fallback. Null metadata renders blank
|
||||
rather than as a placeholder.
|
||||
@@ -97,7 +103,7 @@ one-shot `catalog-migrate` operation; `scripts/run-stack.sh` runs it before loca
|
||||
sessions still consume the existing workspace configuration in this slice: database-management
|
||||
records do not yet change the NL→SQL handoff. The accepted design is recorded in
|
||||
`docs/plans/2026-08-26-metadata-catalog-from-thothai.md`, the snapshot contract under
|
||||
`docs/contracts/`, and ADRs 0001–0007.
|
||||
`docs/contracts/`, and ADRs 0001–0008.
|
||||
|
||||
Semantic aliases, value descriptions, synonyms, concepts, AI metadata generation/consolidation,
|
||||
and logical relationships remain deferred to their dedicated slices.
|
||||
|
||||
Reference in New Issue
Block a user