MCPcopy Create free account
hub / github.com/andywer/postguard / resolveStarColumnRef

Function resolveStarColumnRef

src/resolver.ts:110–121  ·  view source on GitHub ↗
(
  columnRef: ColumnReference,
  tables: TableSchema[]
)

Source from the content-addressed store, hash-verified

108}
109
110function resolveStarColumnRef(
111 columnRef: ColumnReference,
112 tables: TableSchema[]
113): QualifiedColumnReference[] {
114 const table = resolveTable(columnRef, tables)
115
116 return table.columnNames.map(columnName => ({
117 tableName: table.tableName,
118 columnName,
119 path: columnRef.path
120 }))
121}
122
123export function resolveToConcreteColumnRefs(
124 columnRefs: ColumnReference[],

Callers 1

Calls 1

resolveTableFunction · 0.85

Tested by

no test coverage detected