JsonPathBuilder

Create a Path builder using one of the manu reified methods.

From a class:

val builder = TestObject::class.with(TestObject::statuses) {
then(Status::createdAt)
}

From a property:

val builder = TestObject::statuses.builder {
then(Status::createdAt)
}

Quick joining two properties:

val builder = TestObject::statuses.then(Status::createdAt) { // can optionally keep going }

Classes like [OrderBy] and [Where] operators take [JsonPathBuilder] or [KProperty1] to build
the path for sql queries.

Functions

Link copied to clipboard
Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.eq(value: V?): Eq<T, V>

Equivalent to = in SQL

Link copied to clipboard
Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.gt(value: V?): GreaterThan<T, V>

Equivalent to > in SQL

Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.inList(value: Collection<V>): In<T, V>

Equivalent to IN in SQL

Link copied to clipboard
infix fun <T : Any> JsonPathBuilder<T>.like(value: String?): Like<T>

Equivalent to LIKE in SQL

Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.lt(value: V?): LessThan<T, V>

Equivalent to < in SQL

Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.neq(value: V?): NotEq<T, V>

Equivalent to != in SQL

Link copied to clipboard
infix fun <T : Any, V> JsonPathBuilder<T>.notInList(value: Collection<V>): NotIn<T, V>

Equivalent to NOT IN in SQL