Column analysis
Aggregate per procedure
codeweb columns exports, per procedure or package: hard filters, join conditions, SELECT INTO mappings, and enum/column mappings. Exactly one of --procedure or --package is required:
Output is JSON (schema from issue #165). --procedure and --package use the same substring matching as trace; matching more than one node fails the command.
Seed hints
--format seed-hints (issue #181) renders a table-requirements inventory for generating test data: involved tables with per-table operations, the routine signature, hard filters, cross-table equalities, and discriminator values. Each entry carries provenance and confidence.
--discriminatornames a column whose literal values are enumerated asdiscriminator_values. The flag is repeatable and overrides thediscriminator_columnslist fromcodeweb.toml:
By default the list is empty: codeweb has no built-in domain knowledge, so a project opts in explicitly.
Predicates
codeweb predicates --procedure <NAME> resolves PL IF/CASE conditions to table columns and outputs JSON:
--format json is the only supported value today.
Mark WDR report rows
codeweb mark annotates rows of a WDR SQL detail CSV with their relation to a target graph node — useful for tying slow-SQL reports back to procedures and mappers:
Interfaces
The aggregated column analysis is exposed on every surface:
- CLI:
codeweb columns,codeweb predicates - HTTP:
GET /api/v1/columns?procedure=...|package=...[&table=...] - MCP:
codeweb_column_analysis(same JSON schema as the CLI)