Class UserColumns<TColumn>Abstract

Type Parameters

Hierarchy

Constructors

Methods

  • Add a new column

    Parameters

    • column: TColumn

      new column

    Returns void

  • Alter a column

    Parameters

    • column: TColumn

      altered column

    Returns void

  • Drop a column

    Parameters

    • column: TColumn

      column to drop

    Returns void

  • Drop a column

    Parameters

    • index: number

      column index

    Returns void

  • Drop a column

    Parameters

    • columnName: string

      column name

    Returns void

  • Check for duplicate column names

    Parameters

    • index: number

      index

    • previousIndex: number

      previous index

    • column: string

      column

    Returns void

  • Get the column of the column name

    Returns

    column

    Parameters

    • columnName: string

      column name

    Returns TColumn

  • Get the column at the index

    Returns

    column

    Parameters

    • index: number

      column index

    Returns TColumn

  • Get the column index of the column name

    Returns

    column index

    Parameters

    • columnName: string

      column name

    • required: boolean

      column existence is required

    Returns number

  • Get the column index of the column name

    Returns

    column index

    Parameters

    • columnName: string

      column name

    Returns number

  • Get the column name at the index

    Returns

    column name

    Parameters

    • index: number

      column index

    Returns string

  • Get the primary key column index

    Returns

    primary key column index

    Returns number

  • Get the primary key column name

    Returns

    primary key column name

    Returns string

  • Check if the table has the column

    Returns

    true if has the column

    Parameters

    • columnName: string

      column name

    Returns boolean

  • Check if the table has a primary key column

    Returns

    true if has a primary key

    Returns boolean

  • Is custom column specification (partial and/or ordering)

    Returns

    custom flag

    Returns boolean

  • Is the primary key modifiable

    Returns

    true if the primary key is modifiable

    Returns boolean

  • Is value validation against column types enabled

    Returns

    true if values are validated against column types

    Returns boolean

  • Check for missing columns

    Parameters

    • index: number

      column index

    • column: string

      user column

    Returns void

  • Rename a column

    Parameters

    • column: TColumn

      column

    • newColumnName: string

      new column name

    Returns void

  • Rename a column

    Parameters

    • index: number

      column index

    • newColumnName: string

      new column name

    Returns void

  • Rename a column

    Parameters

    • columnName: string

      column name

    • newColumnName: string

      new column name

    Returns void

  • Set the custom column specification flag

    Parameters

    • custom: boolean

      custom flag

    Returns void

  • Set if the primary key can be modified

    Parameters

    • pkModifiable: boolean

      primary key modifiable flag

    Returns void

  • Set the table name

    Parameters

    • tableName: string

      table name

    Returns void

  • Set if values should validated against column types

    Parameters

    • valueValidation: boolean

      value validation flag

    Returns void

Generated using TypeDoc