# 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

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

## Properties

candidate
Link copied to clipboard
val candidate: Expression<*>

The expression being searched for in target.

jsonType
Link copied to clipboard
val jsonType: IColumnType<*>

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

path
Link copied to clipboard
val path: String?

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

target
Link copied to clipboard
val target: Expression<*>

The JSON expression being searched.

## Functions

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