File

src/model/schema/SourceTable.ts

Description

Represents a table that exists in the database.

Index

Properties
Methods
Accessors

Constructor

Public constructor(name: string, schemaName: string)
Parameters :
Name Type Optional
name string No
schemaName string No

Properties

Public name
Type : string
Public schemaName
Type : string

Methods

Public equals
equals(other: SourceTable)
Parameters :
Name Type Optional
other SourceTable No
Returns : boolean

Accessors

fullName
getfullName()

Returns the name of the table in the format "{schemaName}.{tableName}"

Returns : string
export default class SourceTable {
  public constructor(public name: string, public schemaName: string) {}

  /**
   * Returns the name of the table in the format "{schemaName}.{tableName}"
   */
  public get fullName(): string {
    return this.schemaName + '.' + this.name;
  }

  public equals(other: SourceTable) {
    if (this == other) return true;
    return this.name == other.name && this.schemaName == other.schemaName;
  }
}

results matching ""

    No results matching ""