Version: 4.3

Class: UnderscoreNamingStrategy

Hierarchy

Implements

Methods

classToMigrationName

classToMigrationName(timestamp: string): string

Implementation of NamingStrategy

Inherited from AbstractNamingStrategy.classToMigrationName

Defined in packages/core/src/naming-strategy/AbstractNamingStrategy.ts:12

Parameters:

NameType
timestampstring

Returns: string


classToTableName

classToTableName(entityName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.classToTableName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:5

Parameters:

NameType
entityNamestring

Returns: string


getClassName

getClassName(file: string, separator?: string): string

Implementation of NamingStrategy

Inherited from AbstractNamingStrategy.getClassName

Defined in packages/core/src/naming-strategy/AbstractNamingStrategy.ts:5

Parameters:

NameTypeDefault value
filestring-
separatorstring"-"

Returns: string


joinColumnName

joinColumnName(propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.joinColumnName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:9

Parameters:

NameType
propertyNamestring

Returns: string


joinKeyColumnName

joinKeyColumnName(entityName: string, referencedColumnName?: string): string

Overrides AbstractNamingStrategy.joinKeyColumnName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:13

Parameters:

NameType
entityNamestring
referencedColumnName?string

Returns: string


joinTableName

joinTableName(sourceEntity: string, targetEntity: string, propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.joinTableName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:17

Parameters:

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns: string


propertyToColumnName

propertyToColumnName(propertyName: string): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.propertyToColumnName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:21

Parameters:

NameType
propertyNamestring

Returns: string


referenceColumnName

referenceColumnName(): string

Implementation of NamingStrategy

Overrides AbstractNamingStrategy.referenceColumnName

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:25

Returns: string


underscore

Privateunderscore(name: string): string

Defined in packages/core/src/naming-strategy/UnderscoreNamingStrategy.ts:29

Parameters:

NameType
namestring

Returns: string

Last updated on by Martin Adámek