Options
All
  • Public
  • Public/Protected
  • All
Menu

Naming strategy that is used by default.

Hierarchy

  • DefaultNamingStrategy

Implements

Index

Methods

checkConstraintName

  • checkConstraintName(tableOrName: Table | string, expression: string): string

closureJunctionTableName

  • closureJunctionTableName(originalClosureTableName: string): string

columnName

  • columnName(propertyName: string, customName: string, embeddedPrefixes: string[]): string

defaultConstraintName

  • defaultConstraintName(tableOrName: Table | string, columnName: string): string

foreignKeyName

  • foreignKeyName(tableOrName: Table | string, columnNames: string[]): string

indexName

  • indexName(tableOrName: Table | string, columnNames: string[], where?: undefined | string): string

joinColumnName

  • joinColumnName(relationName: string, referencedColumnName: string): string

joinTableColumnDuplicationPrefix

  • joinTableColumnDuplicationPrefix(columnName: string, index: number): string

joinTableColumnName

  • joinTableColumnName(tableName: string, propertyName: string, columnName?: undefined | string): string

joinTableInverseColumnName

  • joinTableInverseColumnName(tableName: string, propertyName: string, columnName?: undefined | string): string

joinTableName

  • joinTableName(firstTableName: string, secondTableName: string, firstPropertyName: string, secondPropertyName: string): string

prefixTableName

  • prefixTableName(prefix: string, tableName: string): string
  • Adds globally set prefix to the table name. This method is executed no matter if prefix was set or not. Table name is either user's given table name, either name generated from entity target. Note that table name comes here already normalized by #tableName method.

    Parameters

    • prefix: string
    • tableName: string

    Returns string

primaryKeyName

  • primaryKeyName(tableOrName: Table | string, columnNames: string[]): string

relationConstraintName

  • relationConstraintName(tableOrName: Table | string, columnNames: string[], where?: undefined | string): string

relationName

  • relationName(propertyName: string): string

tableName

  • tableName(targetName: string, userSpecifiedName: string | undefined): string

uniqueConstraintName

  • uniqueConstraintName(tableOrName: Table | string, columnNames: string[]): string

Generated using TypeDoc