Interface NamingStrategyInterface
Properties
Optional name
name: undefined | string
Methods
checkConstraintName
checkConstraintName( tableOrName: Table | string , expression: string ) : string
Parameters
tableOrName: Table | string
expression: string
Returns string
closureJunctionTableName
closureJunctionTableName( originalClosureTableName: string ) : string
Parameters
originalClosureTableName: string
Returns string
columnName
columnName( propertyName: string , customName: string | undefined , embeddedPrefixes: string [] ) : string
Parameters
propertyName: string
customName: string | undefined
embeddedPrefixes: string []
Returns string
defaultConstraintName
defaultConstraintName( tableOrName: Table | string , columnName: string ) : string
Parameters
tableOrName: Table | string
columnName: string
Returns string
foreignKeyName
foreignKeyName( tableOrName: Table | string , columnNames: string [] ) : string
Parameters
tableOrName: Table | string
columnNames: string []
Returns string
indexName
indexName( tableOrName: Table | string , columns: string [] , where?: undefined | string ) : string
Parameters
tableOrName: Table | string
columns: string []
Optional where: undefined | string
Returns string
joinColumnName
joinColumnName( relationName: string , referencedColumnName: string ) : string
Parameters
relationName: string
referencedColumnName: string
Returns string
joinTableColumnDuplicationPrefix
joinTableColumnDuplicationPrefix( columnName: string , index: number ) : string
Parameters
columnName: string
index: number
Returns string
joinTableColumnName
joinTableColumnName( tableName: string , propertyName: string , columnName?: undefined | string ) : string
Parameters
tableName: string
propertyName: string
Optional columnName: undefined | string
Returns string
joinTableInverseColumnName
joinTableInverseColumnName( tableName: string , propertyName: string , columnName?: undefined | string ) : string
Parameters
tableName: string
propertyName: string
Optional columnName: undefined | string
Returns string
joinTableName
joinTableName( firstTableName: string , secondTableName: string , firstPropertyName: string , secondPropertyName: string ) : string
Parameters
firstTableName: string
secondTableName: string
firstPropertyName: string
secondPropertyName: string
Returns string
prefixTableName
prefixTableName( prefix: string , tableName: string ) : string
Parameters
prefix: string
tableName: string
Returns string
primaryKeyName
primaryKeyName( tableOrName: Table | string , columnNames: string [] ) : string
Parameters
tableOrName: Table | string
columnNames: string []
Returns string
relationConstraintName
relationConstraintName( tableOrName: Table | string , columnNames: string [] , where?: undefined | string ) : string
Parameters
tableOrName: Table | string
columnNames: string []
Optional where: undefined | string
Returns string
relationName
relationName( propertyName: string ) : string
Parameters
Returns string
tableName
tableName( targetName: string , userSpecifiedName: string | undefined ) : string
Parameters
targetName: string
userSpecifiedName: string | undefined
Returns string
uniqueConstraintName
uniqueConstraintName( tableOrName: Table | string , columnNames: string [] ) : string
Parameters
tableOrName: Table | string
columnNames: string []
Returns string
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Naming strategy defines how auto-generated names for such things like table name, or table column gonna be generated.