UniqueOptions <T, H>
Hierarchy
- BaseOptions<T, H>
- UniqueOptions
Index
Properties
optionalinheritedcolumns
optionaldeferMode
optionaldisabled
Whether the index is disabled (MSSQL only).
A disabled index is not used for query planning and is not maintained on writes.
It can be re-enabled later using ALTER INDEX ... REBUILD.
optionalinheritedexpression
optionalinheritedfillFactor
Fill factor for the index as a percentage 0-100 (PostgreSQL, MSSQL).
optionalinheritedinclude
Columns to include in the index but not as part of the key (PostgreSQL, MSSQL). These columns are stored in the leaf level of the index but not used for searching.
optionalinheritedname
optionalinheritedoptions
optionalinheritedproperties
optionalinheritedwhere
Predicate for partial indexes. Object form is a FilterQuery and is portable across
SQL drivers and MongoDB; string form is a raw SQL fragment (SQL drivers only).
Native support: PostgreSQL, SQLite, MSSQL (WHERE), MongoDB (partialFilterExpression).
MySQL 8.0.13+ / Oracle: emulated via CASE WHEN functional index (uniqueness only enforced
where the predicate holds). MariaDB is not supported — it has no inline expression indexes;
define a virtual generated column and index that instead.
Advanced column options for the index. When specified, allows fine-grained control over each column in the index including sort order, nulls ordering, prefix length, and collation. If both
columnsandpropertiesare specified,columnstakes precedence for index creation.