MCPcopy
hub / github.com/simstudioai/sim / getColumnId

Function getColumnId

apps/sim/lib/table/column-keys.ts:26–28  ·  view source on GitHub ↗
(col: Pick<ColumnDefinition, 'id' | 'name'>)

Source from the content-addressed store, hash-verified

24 * which is exactly the key the column still uses, so the fallback is correct.
25 */
26export function getColumnId(col: Pick<ColumnDefinition, 'id' | 'name'>): string {
27 return col.id ?? col.name
28}
29
30/**
31 * Mints a fresh column id. Generated ids are opaque (`col_<uuid>`) and

Callers 15

get_schema.tsFile · 0.90
resolveInputFilesFunction · 0.90
fireTableTriggerFunction · 0.90
schemaFingerprintFunction · 0.90
materializeFunction · 0.90
coerceRowsForTableFunction · 0.90
runTableExportFunction · 0.90
validateSchemaFunction · 0.90
applyColumnOrderToSchemaFunction · 0.90
updateTableMetadataFunction · 0.90
buildColumnTypeMapFunction · 0.90
validateRowAgainstSchemaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected