Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/Index"

Index

Functions

Functions

Index

  • Index(options?: IndexOptions): Function
  • Index(name: string, options?: IndexOptions): Function
  • Index(name: string, options: object): Function
  • Index(name: string, fields: string[], options?: IndexOptions): Function
  • Index(fields: string[], options?: IndexOptions): Function
  • Index(fields: function, options?: IndexOptions): Function
  • Index(name: string, fields: function, options?: IndexOptions): Function
  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    • name: string
    • options: object
      • synchronize: false

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    • name: string
    • fields: string[]
    • Optional options: IndexOptions

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    • fields: function
        • (object?: any): any[] | object
        • Parameters

          • Optional object: any

          Returns any[] | object

    • Optional options: IndexOptions

    Returns Function

  • Creates a database index. Can be used on entity property or on entity. Can create indices with composite columns when used on entity.

    Parameters

    • name: string
    • fields: function
        • (object?: any): any[] | object
        • Parameters

          • Optional object: any

          Returns any[] | object

    • Optional options: IndexOptions

    Returns Function

Generated using TypeDoc