File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
backend/jvm/src/main/kotlin/dev/suresh/db Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ data class Robot(
2929
3030typealias 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
3733val people = sql { Table <People >() }
3834val address = sql { Table <Address >() }
@@ -115,3 +111,8 @@ fun delete(p: People) {
115111fun 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 >() }
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ kotlinx-dataframe = "1.0.0-Beta2"
4747kotlinx-kandy = " 0.8.1-local-1-dev-64"
4848kotlin-statistics = " 0.4.0-RC1"
4949gradle-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 "
5252exposed = " 1.0.0-beta-3"
5353postgresql = " 42.7.7"
5454embedded-postgres = " 2.1.0"
@@ -230,7 +230,7 @@ benmanes = "0.52.0"
230230caupain = " 1.3.0"
231231foojay-resolver = " 1.0.0"
232232gradle-develocity = " 4.0.2"
233- nmcp = " 1.0.0-rc. 1"
233+ nmcp = " 1.0.1"
234234nexus-publish = " 2.0.0"
235235vanniktech-publish = " 0.33.0"
236236gradle-publish = " 1.3.1"
You can’t perform that action at this time.
0 commit comments