MCPcopy
hub / github.com/sqlc-dev/sqlc / findColumnForNode

Function findColumnForNode

internal/compiler/output_columns.go:717–723  ·  view source on GitHub ↗
(item ast.Node, tables []*Table, targetList *ast.List)

Source from the content-addressed store, hash-verified

715}
716
717func findColumnForNode(item ast.Node, tables []*Table, targetList *ast.List) error {
718 ref, ok := item.(*ast.ColumnRef)
719 if !ok {
720 return nil
721 }
722 return findColumnForRef(ref, tables, targetList)
723}
724
725func findColumnForRef(ref *ast.ColumnRef, tables []*Table, targetList *ast.List) error {
726 parts := stringSlice(ref.Fields)

Callers 1

outputColumnsMethod · 0.85

Calls 1

findColumnForRefFunction · 0.85

Tested by

no test coverage detected