Find columns by name
find_columnsLocate all tables and views containing a matching column, with type and nullability, to assess rename or widening impact.
Instructions
Finds every table and, by default, every view holding a column whose name matches a pattern, with each column's type_declaration and nullability. Use it to answer 'which objects have this column?' before a rename, a widening or an impact review; to find objects by their own name use list_tables or list_views.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Restrict to one schema. Empty means every schema. Example: 'Feeder' | |
| database | Yes | Name of the database as registered in the configuration. | |
| include_views | No | Include views as well as tables. True by default. | |
| column_pattern | Yes | Part of a column name. A pattern without % matches anywhere in the name, so 'Date' finds ReferenceDate and AuxDate; add % yourself for a prefix or suffix match, as in 'Aux%'. Example: 'ReferenceDate' |