Skip to content

Commit b088553

Browse files
committed
chore: exoquery update
1 parent 9c1c5c1 commit b088553

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

backend/jvm/src/main/kotlin/dev/suresh/db/Query.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ data class Robot(
2929

3030
typealias sql = capture
3131

32-
@CapturedFunction
33-
fun String.like(value: String) =
34-
capture.expression { free("${this@like} LIKE $value").asPure<Boolean>() }
35-
3632
// Applicative capture
3733
val people = sql { Table<People>() }
3834
val address = sql { Table<Address>() }
@@ -115,3 +111,8 @@ fun delete(p: People) {
115111
fun batch(p: Sequence<People>) {
116112
sql.batch(p) { p -> insert<People> { setParams(p).excluding(id) } }
117113
}
114+
115+
@CapturedFunction
116+
context(_: CapturedBlock)
117+
fun String.like(value: String) =
118+
capture.expression { free("${this@like} LIKE $value").asPure<Boolean>() }

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ kotlinx-dataframe = "1.0.0-Beta2"
4747
kotlinx-kandy = "0.8.1-local-1-dev-64"
4848
kotlin-statistics = "0.4.0-RC1"
4949
gradle-kotlin-dsl = "6.2.0"
50-
exoquery-plugin = "2.2.0-1.4.0.PL.RC1"
51-
exoquery-sql = "1.4.0.PL.RC1"
50+
exoquery-plugin = "2.2.0-1.4.0.PL.RC2"
51+
exoquery-sql = "1.4.0.PL.RC2"
5252
exposed = "1.0.0-beta-3"
5353
postgresql = "42.7.7"
5454
embedded-postgres = "2.1.0"
@@ -230,7 +230,7 @@ benmanes = "0.52.0"
230230
caupain = "1.3.0"
231231
foojay-resolver = "1.0.0"
232232
gradle-develocity = "4.0.2"
233-
nmcp = "1.0.0-rc.1"
233+
nmcp = "1.0.1"
234234
nexus-publish = "2.0.0"
235235
vanniktech-publish = "0.33.0"
236236
gradle-publish = "1.3.1"

0 commit comments

Comments
 (0)