()
| 423 | function in_(values: ReadonlyArray<unknown>): Statement.ArrayHelper |
| 424 | function in_(column: string, values: ReadonlyArray<unknown>): Statement.Fragment |
| 425 | function in_(): Statement.Fragment | Statement.ArrayHelper { |
| 426 | if (arguments.length === 1) { |
| 427 | return new ArrayHelperImpl(arguments[0]) |
| 428 | } |
| 429 | const column = arguments[0] |
| 430 | const values = arguments[1] |
| 431 | return values.length === 0 ? unsafeFragment("1=0") : new FragmentImpl([ |
| 432 | new IdentifierImpl(column), |
| 433 | new LiteralImpl(" IN "), |
| 434 | new ArrayHelperImpl(values) |
| 435 | ]) |
| 436 | } |
| 437 | |
| 438 | /** @internal */ |
| 439 | export function join(literal: string, addParens = true, fallback = "") { |
nothing calls this directly
no test coverage detected