DacFx icon indicating copy to clipboard operation
DacFx copied to clipboard

Open internal utils for matching ColumnReferenceExpression to object in SchemaModel

Open seekingtheoptimal opened this issue 5 years ago • 0 comments

We are trying to match column references from the ScriptDom with columns in the schema (for example to check for non-indexed columns during static code analysis). Sounds easy, but it is not trivial at all.

The factory rule NonIndexedColumnFromInPredicateRule in Dac.Extensions is similar with what we aim for, but the implementation goes really deep and complex for matching the column, and all the utils and tools in the implementation are internal.

It would be amazing to have access to these utils, as it would allow for more advanced custom code analysis rules to be written. Even if the actual implementation remains mostly internal sealed as it is now, maybe expose a few methods that'll try to do the binding (even if it is ambiguous).

seekingtheoptimal avatar Nov 12 '19 16:11 seekingtheoptimal