Skip to main content
Module

x/typeorm/src/index.ts>TableIndex

Forked from https://github.com/typeorm/typeorm
Latest
class TableIndex
Re-export
import { TableIndex } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Database's table index stored in this class.

Constructors

new
TableIndex(options: TableIndexOptions)

Properties

columnNames: string[]

Columns included in this index.

isFulltext: boolean

The FULLTEXT modifier indexes the entire column and does not allow prefixing. Works only in MySQL.

isSpatial: boolean

The SPATIAL modifier indexes the entire column and does not allow indexed columns to contain NULL values. Works only in MySQL.

isUnique: boolean

Indicates if this index is unique.

optional
name: string

Index name.

where: string

Index filter condition.

Methods

clone(): TableIndex

Creates a new copy of this index with exactly same properties.

Static Methods

create(indexMetadata: IndexMetadata): TableIndex

Creates index from the index metadata object.