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(
29
29
30
30
typealias sql = capture
31
31
32
- @CapturedFunction
33
- fun String.like (value : String ) =
34
- capture.expression { free(" ${this @like} LIKE $value " ).asPure<Boolean >() }
35
-
36
32
// Applicative capture
37
33
val people = sql { Table <People >() }
38
34
val address = sql { Table <Address >() }
@@ -115,3 +111,8 @@ fun delete(p: People) {
115
111
fun batch (p : Sequence <People >) {
116
112
sql.batch(p) { p -> insert<People > { setParams(p).excluding(id) } }
117
113
}
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"
47
47
kotlinx-kandy = " 0.8.1-local-1-dev-64"
48
48
kotlin-statistics = " 0.4.0-RC1"
49
49
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 "
52
52
exposed = " 1.0.0-beta-3"
53
53
postgresql = " 42.7.7"
54
54
embedded-postgres = " 2.1.0"
@@ -230,7 +230,7 @@ benmanes = "0.52.0"
230
230
caupain = " 1.3.0"
231
231
foojay-resolver = " 1.0.0"
232
232
gradle-develocity = " 4.0.2"
233
- nmcp = " 1.0.0-rc. 1"
233
+ nmcp = " 1.0.1"
234
234
nexus-publish = " 2.0.0"
235
235
vanniktech-publish = " 0.33.0"
236
236
gradle-publish = " 1.3.1"
You can’t perform that action at this time.
0 commit comments