rebuildCatalog
rebuildCatalogCreates or refreshes a local metadata catalog for offline schema and usage lookups, rebuilding the usage index and returning a distributable catalog file without modifying the inspected database.
Instructions
Create or refresh the persistent local catalog for offline/repeated metadata and usage lookups. Captures configured schema metadata, rebuilds the usage index and returns the distributable catalog file; writes only server-local data, never the inspected database.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | No | Schemas to capture (CSV); omit for configured/default scope. | |
| connection | Yes | Database to run against. Call listConnections for valid names; do not guess. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | Name of the connection whose catalog was rebuilt. | |
| catalogFile | Yes | Absolute path of the built catalog file on disk; copy this file to distribute the catalog. | |
| structureSchemas | No | Schemas captured into the structure snapshot. | |
| usageSourceCount | Yes | Number of usage-catalog sources considered for indexing. | |
| usageCatalogState | No | Usage-index state after the rebuild, e.g. not_started, indexing, ready, failed. | |
| usageCatalogEnabled | Yes | False when the usage catalog is disabled. | |
| structureSchemaCount | Yes | Number of schemas captured into the structure snapshot. |