(_eb, args, { operation }: ZModelFunctionContext<any>)
| 133 | }; |
| 134 | |
| 135 | export const currentOperation: ZModelFunction<any> = (_eb, args, { operation }: ZModelFunctionContext<any>) => { |
| 136 | let result: string = operation; |
| 137 | const [casing] = args; |
| 138 | if (casing) { |
| 139 | result = processCasing(casing, result, operation); |
| 140 | } |
| 141 | return sql.lit(result); |
| 142 | }; |
| 143 | |
| 144 | function processCasing(casing: Expression<any>, result: string, model: string) { |
| 145 | const opNode = casing.toOperationNode(); |
nothing calls this directly
no test coverage detected