( obj: Record<string, any>, )
| 165 | } |
| 166 | |
| 167 | function compileSelectObject( |
| 168 | obj: Record<string, any>, |
| 169 | ): (row: NamespacedRow) => any { |
| 170 | const ops: Array<SelectOp> = [] |
| 171 | addFromObject([], obj, ops) |
| 172 | |
| 173 | return (row) => { |
| 174 | const selectResults: Record<string, any> = {} |
| 175 | for (const op of ops) { |
| 176 | if (op.kind === `merge`) { |
| 177 | processMerge(op, row, selectResults) |
| 178 | } else { |
| 179 | processNonMergeOp(op, row, selectResults) |
| 180 | } |
| 181 | } |
| 182 | return selectResults |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | function compileSelectValue( |
| 187 | value: SelectValueExpression | null | undefined, |
no test coverage detected