(schema: TableSchema)
| 128 | |
| 129 | /** `id → name` for translating outbound wire data (v1 / mothership / CSV export). */ |
| 130 | export 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 |
no test coverage detected