# Class: O2MRelation

# Hierarchy

# Properties

# foreignKey

foreignKey: ForeignKey

Overrides void

Defined in pg-structure/relation/o2m-relation.ts:80

# Accessors

# info

info:

Overrides void

Defined in pg-structure/relation/o2m-relation.ts:46


# name

name:

Inherited from Relation.name

Defined in pg-structure/base/relation.ts:100


# sourceAdjective

sourceAdjective:

Inherited from Relation.sourceAdjective

Defined in pg-structure/base/relation.ts:85


# sourceAlias

sourceAlias:

Defined in pg-structure/relation/o2m-relation.ts:103


# sourceName

sourceName:

Inherited from Relation.sourceName

Defined in pg-structure/base/relation.ts:75


# sourceTable

sourceTable:

Overrides void

Defined in pg-structure/relation/o2m-relation.ts:57


# targetAdjective

targetAdjective:

Inherited from Relation.targetAdjective

Defined in pg-structure/base/relation.ts:90


# targetAlias

targetAlias:

Defined in pg-structure/relation/o2m-relation.ts:108


# targetName

targetName:

Inherited from Relation.targetName

Defined in pg-structure/base/relation.ts:80


# targetTable

targetTable:

Overrides void

Defined in pg-structure/relation/o2m-relation.ts:68

# Methods

# getName

getName(relationNameFunction: RelationNameFunction | BuiltinRelationNameFunction): string

Inherited from Relation.getName

Defined in pg-structure/base/relation.ts:112

Parameters:

Name Type Description
relationNameFunction RelationNameFunction | BuiltinRelationNameFunction is custom function or name of the builtin function to generate names with.

Returns: string

name for the relation using naming function.


# getSourceAliasWithout

getSourceAliasWithout(without: RelationWithout | RelationWithout[]): string

Defined in pg-structure/relation/o2m-relation.ts:88

Parameters:

Name Type Description
without RelationWithout | RelationWithout[] is type or types of tables to exclude names of.

Returns: string

source table alias after given tables' names replaced.


# getSourceNameWithout

getSourceNameWithout(without: RelationWithout | RelationWithout[]): string

Inherited from Relation.getSourceNameWithout

Defined in pg-structure/base/relation.ts:60

Parameters:

Name Type Description
without RelationWithout | RelationWithout[] is type or types of tables to exclude names of.

Returns: string

source table name after given tables' names replaced.


# getTargetAliasWithout

getTargetAliasWithout(without: RelationWithout | RelationWithout[]): string

Defined in pg-structure/relation/o2m-relation.ts:98

Parameters:

Name Type Description
without RelationWithout | RelationWithout[] is type or types of tables to exclude names of.

Returns: string

target table alias after given tables' names replaced.


# getTargetNameWithout

getTargetNameWithout(without: RelationWithout | RelationWithout[]): string

Inherited from Relation.getTargetNameWithout

Defined in pg-structure/base/relation.ts:70

Parameters:

Name Type Description
without RelationWithout | RelationWithout[] is type or types of tables to exclude names of.

Returns: string

target table name after given tables' names replaced.