Skip to content

Commit 9cb087d

Browse files
committed
Rename _contact() & _contains() to *Json()
1 parent cb68ba7 commit 9cb087d

File tree

2 files changed

+4
-4
lines changed
  • integration-tests/src/test/kotlin/com/github/t9t/jooq/json/jsonb
  • jooq-postgresql-json/src/main/kotlin/com/github/t9t/jooq/json/jsonb

2 files changed

+4
-4
lines changed

integration-tests/src/test/kotlin/com/github/t9t/jooq/json/jsonb/JsonbDSLTestIT.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class JsonbDSLTestIT {
116116
val other: Field<JSONB> = DSL.field("other.bar", JSONB::class.java)
117117
/* When */
118118
val containsField = JsonbDSL.contains(jsonbField, other)
119-
val containsFieldExt = jsonbField._contains(other)
119+
val containsFieldExt = jsonbField.containsJson(other)
120120
/* Then */
121121
assertEquals(containsField, containsFieldExt)
122122
}
@@ -193,7 +193,7 @@ class JsonbDSLTestIT {
193193
val other: Field<JSONB> = DSL.field("other.bar", JSONB::class.java)
194194
/* When */
195195
val concatField = JsonbDSL.concat(jsonbField, other)
196-
val concatFieldExt = jsonbField._concat(other)
196+
val concatFieldExt = jsonbField.concatJson(other)
197197
/* Then */
198198
assertEquals(concatField, concatFieldExt)
199199
}

jooq-postgresql-json/src/main/kotlin/com/github/t9t/jooq/json/jsonb/JsonbDSL.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fun Field<JSONB>.objectAtPathText(path: Collection<String>): Field<String> = Jso
5353
/**
5454
* @see JsonbDSL.contains
5555
*/
56-
fun Field<JSONB>._contains(other: Field<JSONB>): Condition = JsonbDSL.contains(this, other)
56+
fun Field<JSONB>.containsJson(other: Field<JSONB>): Condition = JsonbDSL.contains(this, other)
5757

5858
/**
5959
* @see JsonbDSL.containedIn
@@ -88,7 +88,7 @@ fun Field<JSONB>.hasAllKeys(keys: Collection<String>): Condition = JsonbDSL.hasA
8888
/**
8989
* @see JsonbDSL.concat
9090
*/
91-
fun Field<JSONB>._concat(field2: Field<JSONB>): Field<JSONB> = JsonbDSL.concat(this, field2)
91+
fun Field<JSONB>.concatJson(field2: Field<JSONB>): Field<JSONB> = JsonbDSL.concat(this, field2)
9292

9393
/**
9494
* @see JsonbDSL.delete

0 commit comments

Comments
 (0)