| 712 | * Combines clauses with `OR`, parenthesizing multiple clauses and returning |
| 713 | * `1=1` when the list is empty. |
| 714 | * |
| 715 | * @category constructors |
| 716 | * @since 4.0.0 |
| 717 | */ |
| 718 | export const or: (clauses: ReadonlyArray<string | Fragment>) => Fragment = join(" OR ", true, "1=1") |
| 719 | |
| 720 | /** |
| 721 | * Creates a comma-separated SQL fragment from values, optionally adding a |
| 722 | * prefix, and returns an empty fragment when no values are provided. |
| 723 | * |
| 724 | * @category constructors |
| 725 | * @since 4.0.0 |
| 726 | */ |
| 727 | export const csv: { |
| 728 | (values: ReadonlyArray<string | Fragment>): Fragment |
| 729 | (prefix: string, values: ReadonlyArray<string | Fragment>): Fragment |
| 730 | } = function( |
| 731 | ...args: |
| 732 | | [values: ReadonlyArray<string | Fragment>] |
| 733 | | [prefix: string, values: ReadonlyArray<string | Fragment>] |
| 734 | ) { |