Skip to content

postgrelize / IndexField

Type Alias: IndexField ​

IndexField = string | IndexElementModifiers & Readonly<{ expression?: undefined; name: string; }> | IndexElementModifiers & Readonly<{ expression: string; name?: undefined; }>

Defined in: src/ddl/ddl-types.ts:100

Index field: a column name, { name, order, nulls, collate, operator } or an expression { expression, ... }. The expression is trusted SQL (not escaped): never build it from user input. An index with an expression field needs an explicit name.

Released under the MIT License.