( node: QueryRegex, column: string, forcePositive?: true, )
| 533 | } |
| 534 | |
| 535 | function regexpWithFlags( |
| 536 | node: QueryRegex, |
| 537 | column: string, |
| 538 | forcePositive?: true, |
| 539 | ) { |
| 540 | const col = sql.raw(column) |
| 541 | const not = getNot(node.negate, forcePositive) |
| 542 | return sql<SqlBool>`${not} regexp_with_flags(${node.pattern}, ${node.flags}, ${col})` |
| 543 | } |
| 544 | |
| 545 | function handleField( |
| 546 | node: QueryString | QueryRegex, |
no test coverage detected