Skip to main content
Version: Next

Class: MongoNamingStrategy

core.MongoNamingStrategy

Hierarchy#

Constructors#

constructor#

new MongoNamingStrategy()

Inherited from#

AbstractNamingStrategy.constructor

Methods#

classToMigrationName#

classToMigrationName(timestamp): string

Parameters#

NameType
timestampstring

Returns#

string

Inherited from#

AbstractNamingStrategy.classToMigrationName

Defined in#

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


classToTableName#

classToTableName(entityName): string

Parameters#

NameType
entityNamestring

Returns#

string

Overrides#

AbstractNamingStrategy.classToTableName

Defined in#

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


columnNameToProperty#

columnNameToProperty(columnName): string

Parameters#

NameType
columnNamestring

Returns#

string

Inherited from#

AbstractNamingStrategy.columnNameToProperty

Defined in#

packages/core/src/naming-strategy/AbstractNamingStrategy.ts:32


getClassName#

getClassName(file, separator?): string

Parameters#

NameTypeDefault value
filestringundefined
separatorstring'-'

Returns#

string

Inherited from#

AbstractNamingStrategy.getClassName

Defined in#

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


indexName#

indexName(tableName, columns, type): string

Parameters#

NameType
tableNamestring
columnsstring[]
type"index" | "unique" | "primary" | "foreign" | "sequence"

Returns#

string

Inherited from#

AbstractNamingStrategy.indexName

Defined in#

packages/core/src/naming-strategy/AbstractNamingStrategy.ts:16


joinColumnName#

joinColumnName(propertyName): string

Parameters#

NameType
propertyNamestring

Returns#

string

Overrides#

AbstractNamingStrategy.joinColumnName

Defined in#

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


joinKeyColumnName#

joinKeyColumnName(entityName, referencedColumnName?): string

Parameters#

NameType
entityNamestring
referencedColumnName?string

Returns#

string

Overrides#

AbstractNamingStrategy.joinKeyColumnName

Defined in#

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


joinTableName#

joinTableName(sourceEntity, targetEntity, propertyName): string

Parameters#

NameType
sourceEntitystring
targetEntitystring
propertyNamestring

Returns#

string

Overrides#

AbstractNamingStrategy.joinTableName

Defined in#

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


propertyToColumnName#

propertyToColumnName(propertyName): string

Parameters#

NameType
propertyNamestring

Returns#

string

Overrides#

AbstractNamingStrategy.propertyToColumnName

Defined in#

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


referenceColumnName#

referenceColumnName(): string

Returns#

string

Overrides#

AbstractNamingStrategy.referenceColumnName

Defined in#

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