(
conditions: (
| DatabaseLevelCondition
| SchemaLevelCondition
| TableLevelCondition
| ColumnLevelCondition
)[]
)
| 332 | } |
| 333 | |
| 334 | function buildGroup( |
| 335 | conditions: ( |
| 336 | | DatabaseLevelCondition |
| 337 | | SchemaLevelCondition |
| 338 | | TableLevelCondition |
| 339 | | ColumnLevelCondition |
| 340 | )[] |
| 341 | ): string { |
| 342 | if (conditions.length === 1) { |
| 343 | return buildCondition(conditions[0]); |
| 344 | } else { |
| 345 | const conditionStrings = conditions.map(buildCondition); |
| 346 | return `${conditionStrings.map((s) => `(${s})`).join(" || ")}`; |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | const topLevelCondition = buildGroup(conditions); |
| 351 | return `(${topLevelCondition})`; |
no test coverage detected