MatchAgainstExpression

data class MatchAgainstExpression(val matchColumns: List<ColumnExpression<*>>, val searchString: String, val searchModifier: SearchModifier? = null, val sqlType: SqlType<Boolean> = BooleanSqlType, val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : ScalarExpression<Boolean> (source)

Match against expression, represents an match ... against ... operation in MySQL. See https://dev.mysql.com/doc/refman/5.5/en/insert-on-duplicate.html

Constructors

Link copied to clipboard
constructor(matchColumns: List<ColumnExpression<*>>, searchString: String, searchModifier: SearchModifier? = null, sqlType: SqlType<Boolean> = BooleanSqlType, isLeafNode: Boolean = false, 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 = false
Link copied to clipboard

columns to be searched.

Link copied to clipboard

optional modifier that indicates what type of search to perform.

Link copied to clipboard

the search string.

Link copied to clipboard
open override val sqlType: SqlType<Boolean>

Functions

Link copied to clipboard
open override fun aliased(label: String?): ColumnDeclaringExpression<Boolean>
Link copied to clipboard
open override fun asExpression(): ScalarExpression<Boolean>
Link copied to clipboard

MySQL ifnull function, translated to ifnull(left, right).

Link copied to clipboard

MySQL replace function, translated to replace(str, oldValue, newValue).

Link copied to clipboard

MySQL lower function, translated to lower(str).

Link copied to clipboard

MySQL upper function, translated to upper(str).

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