( operator: Exclude<ComparisonOperator, 'in' | 'notIn'>, column: string | ColumnReferenceLike, value: unknown, )
| 409 | } |
| 410 | |
| 411 | function createComparisonPredicate( |
| 412 | operator: Exclude<ComparisonOperator, 'in' | 'notIn'>, |
| 413 | column: string | ColumnReferenceLike, |
| 414 | value: unknown, |
| 415 | ): Predicate<string> { |
| 416 | let normalizedColumn = resolvePredicateColumn(column) |
| 417 | let normalizedValue = resolveComparisonValue(value) |
| 418 | |
| 419 | if (isQualifiedColumnReference(normalizedColumn) && isQualifiedColumnReference(normalizedValue)) { |
| 420 | return { |
| 421 | type: 'comparison', |
| 422 | operator, |
| 423 | column: normalizedColumn, |
| 424 | value: normalizedValue, |
| 425 | valueType: 'column', |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | return { |
| 430 | type: 'comparison', |
| 431 | operator, |
| 432 | column: normalizedColumn, |
| 433 | value: normalizedValue, |
| 434 | valueType: 'value', |
| 435 | } |
| 436 | } |
no test coverage detected
searching dependent graphs…