Package-level declarations
Types
Link copied to clipboard
class Contains(val target: Expression<*>, val candidate: Expression<*>, val path: String?, val jsonType: IColumnType<*>) : Op<Boolean> , ComplexExpression
Link copied to clipboard
class Exists(val expression: Expression<*>, val path: String, val optional: String?, val jsonType: IColumnType<*>) : Op<Boolean> , ComplexExpression
Represents an SQL operator that checks whether data exists within a JSON expression at the specified path.
Link copied to clipboard
class Extract<T>(val expression: Expression<*>, val path: String, val toScalar: Boolean, val jsonType: IColumnType<*>, columnType: IColumnType<T & Any>) : Function<T>
Represents an SQL function that returns extracted data from a JSON object at the specified path, either as a JSON representation or as a scalar value.
Link copied to clipboard
class JsonBColumnType<T : Any>(serialize: (T) -> String, deserialize: (String) -> T) : JsonColumnType<T>
Column for storing JSON data in binary format.
Link copied to clipboard
open class JsonColumnType<T : Any>(val serialize: (T) -> String, val deserialize: (String) -> T) : ColumnType<T> , JsonColumnMarker
Column for storing JSON data, either in non-binary text format or the vendor's default JSON type format.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> Table.jsonb(name: String, serialize: (T) -> String, deserialize: (String) -> T): Column<T>
inline fun <T : Any> Table.jsonb(name: String, jsonConfig: Json, kSerializer: KSerializer<T> = serializer<T>()): Column<T>
Creates a column, with the specified name, for storing JSON data in decomposed binary format.