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
65
65
as rendering empty lists). This change should be transparent to users unless they have implemented custom conditions.
66
66
4 . Added a configuration setting to allow empty list conditions to render. This could generate invalid SQL, but might be
67
67
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.
68
71
69
72
## Release 1.5.0 - April 21, 2023
70
73
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
85
85
select(foo) {
86
86
from(bar)
87
87
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 } }
90
91
}
91
- or { id isEqualTo 4 }
92
- and { not { id isEqualTo 6 } }
93
92
}
94
93
```
95
94
@@ -215,8 +214,10 @@ These criteria should be updated by moving the column and condition into a lambd
215
214
``` kotlin
216
215
select(foo) {
217
216
from(bar)
218
- where { id isEqualTo 3 }
219
- or { id isEqualTo 4 }
217
+ where {
218
+ id isEqualTo 3
219
+ or { id isEqualTo 4 }
220
+ }
220
221
}
221
222
```
222
223
You can’t perform that action at this time.
0 commit comments