Mapping between column names being mapped to and the mapped column information

Author

osbornb

Hierarchy

  • TableMapping

Constructors

Properties

_columns: {} = {}

Mapping between column names and mapped columns

Type declaration

    _droppedColumns: Set<string> = ...

    Dropped columns from the previous table version

    _fromTable: string

    From table name

    _toTable: string

    To table name

    _transferContent: boolean = true

    Transfer row content to new table

    _where: string

    Custom where clause (in addition to column where mappings)

    Accessors

    • get droppedColumns(): Set<string>
    • Get a set of dropped columns

      Returns

      dropped columns

      Returns Set<string>

    • get fromTable(): string
    • Get the from table name

      Returns

      from table name

      Returns string

    • set fromTable(fromTable: string): void
    • Set the from table name

      Parameters

      • fromTable: string

        from table name

      Returns void

    • get toTable(): string
    • Get the to table name

      Returns

      to table name

      Returns string

    • set toTable(toTable: string): void
    • Set the to table name

      Parameters

      • toTable: string

        to table name

      Returns void

    • set transferContent(transferContent: boolean): void
    • Set the transfer content flag

      Parameters

      • transferContent: boolean

        true if data should be transfered to the new table

      Returns void

    Methods

    • Add a column

      Parameters

      • columnName: string

        column name

      Returns void

    • Add a dropped column

      Parameters

      • columnName: string

        column name

      Returns void

    • Check if there is a custom where clause

      Returns

      true if where clause

      Returns boolean

    • Check if the column name is a dropped column

      Returns

      true if a dropped column

      Parameters

      • columnName: string

        column name

      Returns boolean

    • Check if the table mapping is to a new table

      Returns

      true if a new table

      Returns boolean

    • Is the transfer content flag enabled

      Returns

      true if data should be transfered to the new table

      Returns boolean

    • Remove a dropped column

      Returns

      true if removed

      Parameters

      • columnName: string

        column name

      Returns boolean

    Generated using TypeDoc