Contains

class Contains(val target: Expression<*>, val candidate: Expression<*>, val path: String?, val jsonType: IColumnType<*>) : Op<Boolean> , ComplexExpression

Represents an SQL operator that checks whether a candidate expression is contained within a JSON target.

Constructors

Link copied to clipboard
constructor(target: Expression<*>, candidate: Expression<*>, path: String?, jsonType: IColumnType<*>)

Properties

Link copied to clipboard

The expression being searched for in target.

Link copied to clipboard

The column type of target to check, if casting to JSONB is required.

Link copied to clipboard
val path: String?

An optional String representing JSON path/keys that match specific fields to search for candidate.

Link copied to clipboard

The JSON expression being searched.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toQueryBuilder(queryBuilder: QueryBuilder)
Link copied to clipboard
open override fun toString(): String