Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultNamingStrategy

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

exclusionConstraintName

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

foreignKeyName

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

indexName

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

joinColumnName

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

joinTableColumnDuplicationPrefix

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

joinTableColumnName

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

joinTableInverseColumnName

  • joinTableInverseColumnName(tableName: string, propertyName: string, columnName?: 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?: 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