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

Function rowDataNameToId

apps/sim/lib/table/column-keys.ts:141–148  ·  view source on GitHub ↗
(data: RowData, idByName: Map<string, string>)

Source from the content-addressed store, hash-verified

139 * column are dropped (validation has already run against the schema).
140 */
141export function rowDataNameToId(data: RowData, idByName: Map<string, string>): RowData {
142 const out: RowData = {}
143 for (const [name, value] of Object.entries(data)) {
144 const id = idByName.get(name)
145 if (id !== undefined) out[id] = value
146 }
147 return out
148}
149
150/**
151 * Translates a filter's field names → column ids (recursing into `$or`/`$and`).

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 1

getMethod · 0.65

Tested by

no test coverage detected