getQuery
getQueryRetrieve the full stored record for a known query: SQL, parameters, parsed tables/columns/joins, outputs, and field usages. Use after discovery tools for complete details.
Instructions
Retrieve the complete stored record for one query whose source identity is already known. Returns SQL, parameters, parsed tables/columns/joins, outputs and field usages; use listQueries, findQueriesByTable or findQueriesByColumn to discover matching records first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Database to run against. Call listConnections for valid names; do not guess. | |
| sourceKind | Yes | Source kind, e.g. dao, report, database-view. | |
| sourcePath | Yes | Stable source path, e.g. file path. | |
| sourceUnit | No | Optional sub-unit, e.g. method name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Business tags attached to the usage-catalog query. | |
| rawSql | No | Original SQL text stored in the usage catalog. | |
| tables | No | Tables included in this context, graph, query inspection, or usage record. | |
| columns | No | Resolved column references extracted from the known query. | |
| outputs | No | Documented output fields produced by the query. | |
| joinPairs | No | Join pairs extracted from the query and stored in the usage catalog. | |
| parameters | No | Documented parameters for this known query. | |
| sourceKind | No | Kind of source that produced the catalog query, such as file, view, routine, or configured import. | |
| sourcePath | No | Path or database object name where the catalog query came from. | |
| sourceUnit | No | Stable unit identifier inside the source, such as query id, method name, view name, or routine name. | |
| fieldUsages | No | Semantic field usages attached to the query outputs or expressions. | |
| parseStatus | No | SQL parse status for a catalog query, such as parsed or failed. | |
| businessLabel | No | ||
| normalizedSql | No | Normalized SQL text produced by parser or usage-catalog indexing. | |
| businessDomain | No | Business domain assigned to the catalog query or usage record. |