MCPcopy Index your code
hub / github.com/simstudioai/sim / columnMatchesRef

Function columnMatchesRef

apps/sim/lib/table/column-keys.ts:50–52  ·  view source on GitHub ↗
(col: ColumnDefinition, ref: string)

Source from the content-addressed store, hash-verified

48 * with `.find` / `.findIndex` so id-or-name resolution can't drift between sites.
49 */
50export function columnMatchesRef(col: ColumnDefinition, ref: string): boolean {
51 return getColumnId(col) === ref || col.name.toLowerCase() === ref.toLowerCase()
52}
53
54/**
55 * Returns a schema copy with a generated id stamped onto every column that

Callers 6

renameColumnFunction · 0.90
deleteColumnFunction · 0.90
deleteColumnsFunction · 0.90
updateColumnTypeFunction · 0.90
updateColumnConstraintsFunction · 0.90

Calls 1

getColumnIdFunction · 0.85

Tested by

no test coverage detected