File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ types - which is a rare usage. Please let us know if this causes an undo hardshi
6565 as rendering empty lists). This change should be transparent to users unless they have implemented custom conditions.
66664 . Added a configuration setting to allow empty list conditions to render. This could generate invalid SQL, but might be
6767 a good safety measure in some cases.
68+ 5 . Added Array based functions for the "in" and "not in" conditions in the Kotlin DSL. These functions allow a more
69+ natural use of an Array as an input for an "in" condition. They also allow easy reuse of a vararg argument in a
70+ function.
6871
6972## Release 1.5.0 - April 21, 2023
7073
Original file line number Diff line number Diff line change @@ -85,11 +85,10 @@ where clauses with and/or/not phrases. See the following example of a complex wh
8585select(foo) {
8686 from(bar)
8787 where {
88- id isEqualTo 3
89- and { id isEqualTo 4 }
88+ id isEqualTo 3
89+ or { id isEqualTo 4 }
90+ and { not { id isEqualTo 6 } }
9091 }
91- or { id isEqualTo 4 }
92- and { not { id isEqualTo 6 } }
9392}
9493```
9594
@@ -215,8 +214,10 @@ These criteria should be updated by moving the column and condition into a lambd
215214``` kotlin
216215select(foo) {
217216 from(bar)
218- where { id isEqualTo 3 }
219- or { id isEqualTo 4 }
217+ where {
218+ id isEqualTo 3
219+ or { id isEqualTo 4 }
220+ }
220221}
221222```
222223
You can’t perform that action at this time.
0 commit comments