(schema: TableSchema)
| 121 | |
| 122 | /** `name → id` for translating inbound wire data (v1 / mothership / CSV import). */ |
| 123 | export 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). */ |
| 130 | export function buildNameById(schema: TableSchema): Map<string, string> { |
no test coverage detected