Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Relation

Class which represent a relationship. Provides attributes and methods for details of the relationship.

abstract
hideconstructor

Hierarchy

Index

Accessors

sourceAdjective

  • get sourceAdjective(): undefined | string
  • Source table's adjective extracted from foreign key name.

    Returns undefined | string

sourceName

  • get sourceName(): string
  • Source table name.

    Returns string

targetAdjective

  • get targetAdjective(): undefined | string
  • Source table's adjective extracted from foreign key name.

    Returns undefined | string

targetName

  • get targetName(): string
  • Target table name

    Returns string

Methods

getSourceNameWithout

  • getSourceNameWithout(without: "any" | "source" | "target" | RelationWithout[]): string
  • Returns source table name after replacing given tables' names from it.

    Parameters

    • without: "any" | "source" | "target" | RelationWithout[]

      is type or types of tables to exclude names of.

    Returns string

    source table name after given tables' names replaced.

getTargetNameWithout

  • getTargetNameWithout(without: "any" | "source" | "target" | RelationWithout[]): string
  • Returns target table name after replacing given tables' names from it.

    Parameters

    • without: "any" | "source" | "target" | RelationWithout[]

      is type or types of tables to exclude names of.

    Returns string

    target table name after given tables' names replaced.

Generated using TypeDoc