src/model/schema/BasicTable.ts
Abstract base class for Table and UnionedTable. Use Schema.displayedColumnsOf(BasicTable) to get the columns that should be displayed in the schema graph.
Properties |
|
Methods |
|
Accessors |
Public isRejectedFact |
Default value : false
|
Defined in src/model/schema/BasicTable.ts:13
|
Public isSuggestedFact |
Default value : false
|
Defined in src/model/schema/BasicTable.ts:12
|
Public name |
Type : string
|
Default value : ''
|
Defined in src/model/schema/BasicTable.ts:9
|
Public schemaName |
Type : string
|
Default value : ''
|
Defined in src/model/schema/BasicTable.ts:10
|
Public Abstract nullConstraintFor | |||||||||
nullConstraintFor(column: BasicColumn, constraintPolicy: ConstraintPolicy)
|
|||||||||
Defined in src/model/schema/BasicTable.ts:25
|
|||||||||
returns whether the specified column should be nullable in the exported schema.
Parameters :
Returns :
boolean
|
fullName |
getfullName()
|
Defined in src/model/schema/BasicTable.ts:18
|
returns the name of the table in the format "{schemaName}.{tableName}"
Returns :
string
|
import BasicColumn from '../types/BasicColumn';
import { ConstraintPolicy } from '../types/ConstraintPolicy';
/**
* Abstract base class for Table and UnionedTable.
* Use Schema.displayedColumnsOf(BasicTable) to get the columns that should be displayed in the schema graph.
*/
export default abstract class BasicTable {
public name = '';
public schemaName = '';
public isSuggestedFact = false;
public isRejectedFact = false;
/**
* returns the name of the table in the format "{schemaName}.{tableName}"
*/
public get fullName(): string {
return this.schemaName + '.' + this.name;
}
/**
* returns whether the specified column should be nullable in the exported schema.
*/
public abstract nullConstraintFor(
column: BasicColumn,
constraintPolicy: ConstraintPolicy
): boolean;
}