DefaultValueExpression

data class DefaultValueExpression<T : Any>(val sqlType: SqlType<T>, val isLeafNode: Boolean = true, val extraProperties: Map<String, Any> = emptyMap()) : ScalarExpression<T> (source)

Default value expression, translated to the default keyword in PostgreSQL, used in insert statements.

For example:

insert into table (column1, column2) values (default, ?)

Constructors

Link copied to clipboard
constructor(sqlType: SqlType<T>, isLeafNode: Boolean = true, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
open override val extraProperties: Map<String, Any>
Link copied to clipboard
open override val isLeafNode: Boolean = true
Link copied to clipboard
open override val sqlType: SqlType<T>

Functions

Link copied to clipboard
open override fun aliased(label: String?): ColumnDeclaringExpression<T>
Link copied to clipboard
open override fun asExpression(): ScalarExpression<T>
Link copied to clipboard
@JvmName(name = "earthContainedIn")
fun ColumnDeclaring<Earth>.containedIn(argument: Cube): CubeExpression<Boolean>

Cube contained in operator, translated to the <@ operator in PostgreSQL.

HStore contained-in operator, translated to the <@ operator in PostgreSQL.

Link copied to clipboard

HStore contains operator, translated to the @> operator in PostgreSQL.

@JvmName(name = "containsEarth")
fun ColumnDeclaring<Cube>.contains(argument: Earth): CubeExpression<Boolean>

Cube contains operator, translated to the @> operator in PostgreSQL.

Link copied to clipboard

HStore contains-all-keys operator, translated to the ?& operator in PostgreSQL.

Link copied to clipboard

HStore contains-any-keys operator, translated to the ?| operator in PostgreSQL.

Link copied to clipboard

HStore contains-key operator, translated to the ? operator in PostgreSQL.

Link copied to clipboard
@JvmName(name = "getValues")
operator fun ColumnDeclaring<HStore>.get(argument: TextArray): HStoreExpression<TextArray>

HStore get-values-for-keys operator, translated to the -> operator in PostgreSQL.

@JvmName(name = "getValue")
operator fun ColumnDeclaring<HStore>.get(argument: String): HStoreExpression<String>
@JvmName(name = "getValue")
operator fun ColumnDeclaring<HStore>.get(expr: ColumnDeclaring<String>): HStoreExpression<String>

HStore get-value-for-key operator, translated to the -> operator in PostgreSQL.

Link copied to clipboard
infix fun ColumnDeclaring<*>.ilike(argument: String): ILikeExpression

ILike operator, translated to the ilike keyword in PostgreSQL.

Link copied to clipboard
@JvmName(name = "minusKeys")
operator fun ColumnDeclaring<HStore>.minus(argument: TextArray): HStoreExpression<HStore>

HStore delete-keys operator, translated to the - operator in PostgreSQL.

@JvmName(name = "minusKey")
operator fun ColumnDeclaring<HStore>.minus(argument: String): HStoreExpression<HStore>

HStore delete-key operator, translated to the - operator in PostgreSQL.

@JvmName(name = "minusMatching")
operator fun ColumnDeclaring<HStore>.minus(argument: HStore): HStoreExpression<HStore>
@JvmName(name = "minusMatching")
operator fun ColumnDeclaring<HStore>.minus(expr: ColumnDeclaring<HStore>): HStoreExpression<HStore>

HStore delete-matching-pairs operator, translated to the - operator in PostgreSQL.

Link copied to clipboard

Cube overlap operator, translated to the && operator in PostgreSQL.

Link copied to clipboard

HStore concatenate operator, translated to the || operator in PostgreSQL.

Link copied to clipboard
open override fun wrapArgument(argument: T?): ArgumentExpression<T>