index
Creates an index.
Parameters
is Unique
Whether the index is unique or not.
columns
Columns that compose the index.
fun index(customIndexName: String? = null, isUnique: Boolean = false, vararg columns: Column<*>, functions: List<ExpressionWithColumnType<*>>? = null, indexType: String? = null, filterCondition: FilterCondition = null)
Creates an index.
Parameters
custom Index Name
Name of the index.
is Unique
Whether the index is unique or not.
columns
Columns that compose the index.
functions
Functions that compose the index.
index Type
A custom index type (e.g., "BTREE" or "HASH").
filter Condition
Index filtering conditions (also known as "partial index") declaration.
Creates an index composed by this column only.
Parameters
custom Index Name
Name of the index.
is Unique
Whether the index is unique or not.