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

Function buildNameById

apps/sim/lib/table/column-keys.ts:130–134  ·  view source on GitHub ↗
(schema: TableSchema)

Source from the content-addressed store, hash-verified

128
129/** `id → name` for translating outbound wire data (v1 / mothership / CSV export). */
130export function buildNameById(schema: TableSchema): Map<string, string> {
131 const map = new Map<string, string>()
132 for (const col of schema.columns) map.set(getColumnId(col), col.name)
133 return map
134}
135
136/**
137 * Remaps a wire row keyed by column **name** to the stored **id** keying. Used

Callers 10

executeFunction · 0.90
fireTableTriggerFunction · 0.90
runTableExportFunction · 0.90
rowWireTranslatorsFunction · 0.90
route.tsFile · 0.90
handleBatchInsertFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 2

getColumnIdFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected