Extract
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.
Constructors
Link copied to clipboard
constructor(expression: Expression<*>, vararg path: String, toScalar: Boolean, jsonType: IColumnType<*>, columnType: IColumnType<T & Any>)
Properties
Link copied to clipboard
Link copied to clipboard
The expression from which to extract JSON subcomponents matched by path.
Link copied to clipboard
The column type of expression to check, if casting to JSONB is required.
Functions
Link copied to clipboard
Specifies a casting of the calling expression's data type to the JSON data type. This is useful when it may be necessary to cast a type such as text to a JSON type that can be handled by a serializable class on the client-side.
Specifies a casting of the calling expression's data type to the JSON data type. This is useful when it may be necessary to cast a JSONB column or expression to JSON, but some dialects also support casting text types as well.
Link copied to clipboard
Link copied to clipboard