Version: 4.3

Interface: NamingStrategy

Hierarchy

  • NamingStrategy

Implemented by

Methods

classToMigrationName

classToMigrationName(timestamp: string): string

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:16

Return a migration name. This name should allow ordering.

Parameters:

NameType
timestampstring

Returns: string


classToTableName

classToTableName(entityName: string): string

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:11

Return a table name for an entity class

Parameters:

NameType
entityNamestring

Returns: string


getClassName

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

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:6

Return a name of the class based on its file name

Parameters:

NameType
filestring
separator?string

Returns: string


joinColumnName

joinColumnName(propertyName: string): string

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:31

Return a join column name for a property

Parameters:

NameType
propertyNamestring

Returns: string


joinKeyColumnName

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

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:41

Return the foreign key column name for the given parameters

Parameters:

NameType
entityNamestring
referencedColumnName?string
composite?boolean

Returns: string


joinTableName

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

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:36

Return a join table name

Parameters:

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns: string


propertyToColumnName

propertyToColumnName(propertyName: string): string

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

Return a column name for a property

Parameters:

NameType
propertyNamestring

Returns: string


referenceColumnName

referenceColumnName(): string

Defined in packages/core/src/naming-strategy/NamingStrategy.ts:26

Return the default reference column name

Returns: string

Last updated on by Martin Adámek