Index(options?: IndexOptions): ClassDecorator & PropertyDecorator 返回 ClassDecorator & PropertyDecorator
Index(name: string, options?: IndexOptions): ClassDecorator & PropertyDecorator 返回 ClassDecorator & PropertyDecorator
Index( name: string, options: { synchronize: false },): ClassDecorator & PropertyDecorator 参数
- name: string
- options: { synchronize: false }
返回 ClassDecorator & PropertyDecorator
Index( name: string, fields: string[], options?: IndexOptions,): ClassDecorator & PropertyDecorator 返回 ClassDecorator & PropertyDecorator
Index( fields: string[], options?: IndexOptions,): ClassDecorator & PropertyDecorator 返回 ClassDecorator & PropertyDecorator
Index( fields: (object?: any) => any[] | { [key: string]: number }, options?: IndexOptions,): ClassDecorator & PropertyDecorator 参数
- fields: (object?: any) => any[] | { [key: string]: number }
可选options: IndexOptions
返回 ClassDecorator & PropertyDecorator
Index( name: string, fields: (object?: any) => any[] | { [key: string]: number }, options?: IndexOptions,): ClassDecorator & PropertyDecorator 参数
- name: string
- fields: (object?: any) => any[] | { [key: string]: number }
可选options: IndexOptions
返回 ClassDecorator & PropertyDecorator
Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.