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

Function formatColumnRefs

src/parser.ts:14–19  ·  view source on GitHub ↗
(columnRefs: ColumnReference[])

Source from the content-addressed store, hash-verified

12const debugTables = createDebugLogger("postguard:table")
13
14function formatColumnRefs(columnRefs: ColumnReference[]): string {
15 const formattedColumnRefs = columnRefs.map(col =>
16 "tableName" in col ? `${col.tableName}.${col.columnName}` : col.columnName
17 )
18 return formattedColumnRefs.length > 0 ? formattedColumnRefs.join(", ") : "-"
19}
20
21function stringifyColumnType(descriptor: ColumnDescriptor) {
22 const props: string[] = [

Callers 1

parseSourceFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected