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

Function buildIdByName

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

Source from the content-addressed store, hash-verified

121
122/** `name → id` for translating inbound wire data (v1 / mothership / CSV import). */
123export function buildIdByName(schema: TableSchema): Map<string, string> {
124 const map = new Map<string, string>()
125 for (const col of schema.columns) map.set(col.name, getColumnId(col))
126 return map
127}
128
129/** `id → name` for translating outbound wire data (v1 / mothership / CSV export). */
130export function buildNameById(schema: TableSchema): Map<string, string> {

Callers 8

executeFunction · 0.90
replaceTableRowsFromWireFunction · 0.90
rowWireTranslatorsFunction · 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