Skip to content

Commit 053f6af

Browse files
committed
Documentation
1 parent efc4727 commit 053f6af

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
6666
4. 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

src/site/markdown/docs/kotlinWhereClauses.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ where clauses with and/or/not phrases. See the following example of a complex wh
8585
select(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
216215
select(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

0 commit comments

Comments
 (0)