Back to Exposed

Exists

docs/api/exposed-json/org.jetbrains.exposed.v1.json/-exists/index.html

1.2.03.8 KB
Original Source

Exists

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.

Members

Constructors

Exists

Link copied to clipboard

constructor(expression: Expression<*>, vararg path: String, optional: String?, jsonType: IColumnType<*>)

Properties

expression

Link copied to clipboard

val expression: Expression<*>

The JSON expression being checked.

jsonType

Link copied to clipboard

val jsonType: IColumnType<*>

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

optional

Link copied to clipboard

val optional: String?

An optional String representing any vendor-specific clause or argument.

path

Link copied to clipboard

val path: Array<out String>

The array of Strings representing JSON path/keys that match fields to check for existing data.

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

Generated by Dokka © 2026 Copyright