src/model/schema/SourceTable.ts
Represents a table that exists in the database.
Properties |
|
Methods |
|
Accessors |
Public
constructor(name: string, schemaName: string)
|
Defined in src/model/schema/SourceTable.ts:4
|
Public name |
Type : string
|
Defined in src/model/schema/SourceTable.ts:5
|
Public schemaName |
Type : string
|
Defined in src/model/schema/SourceTable.ts:5
|
Public equals | ||||||
equals(other: SourceTable)
|
||||||
Defined in src/model/schema/SourceTable.ts:14
|
||||||
Parameters :
Returns :
boolean
|
fullName |
getfullName()
|
Defined in src/model/schema/SourceTable.ts:10
|
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;
}
}