* Maps a column's **stable id** (the JSONB storage key, via `getColumnId`) to * its type. Filter/sort objects arrive keyed by column id, so the lookups in the * clause builders use ids — not display names.
(columns: ColumnDefinition[])
| 54 | * clause builders use ids — not display names. |
| 55 | */ |
| 56 | function buildColumnTypeMap(columns: ColumnDefinition[]): ColumnTypeMap { |
| 57 | return new Map(columns.map((col) => [getColumnId(col), col.type])) |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Whitelist of allowed operators for query filtering. |
no test coverage detected