Skip to main content
Version: 4.5

Class: MongoNamingStrategy#

core.MongoNamingStrategy

Hierarchy#

Constructors#

constructor#

+ new MongoNamingStrategy(): MongoNamingStrategy

Returns: MongoNamingStrategy

Inherited from: AbstractNamingStrategy

Methods#

classToMigrationName#

classToMigrationName(timestamp: string): string

Parameters:#

NameType
timestampstring

Returns: string

Inherited from: AbstractNamingStrategy

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


classToTableName#

classToTableName(entityName: string): string

Parameters:#

NameType
entityNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


getClassName#

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

Parameters:#

NameTypeDefault value
filestring-
separatorstring'-'

Returns: string

Inherited from: AbstractNamingStrategy

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


joinColumnName#

joinColumnName(propertyName: string): string

Parameters:#

NameType
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


joinKeyColumnName#

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

Parameters:#

NameType
entityNamestring
referencedColumnName?string

Returns: string

Overrides: AbstractNamingStrategy

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


joinTableName#

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

Parameters:#

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


propertyToColumnName#

propertyToColumnName(propertyName: string): string

Parameters:#

NameType
propertyNamestring

Returns: string

Overrides: AbstractNamingStrategy

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


referenceColumnName#

referenceColumnName(): string

Returns: string

Overrides: AbstractNamingStrategy

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

Last updated on by Renovate Bot