import { DefaultNamingStrategy } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/naming-strategy/DefaultNamingStrategy.ts";
Naming strategy that is used by default.
Methods
checkConstraintName(tableOrName: Table | string, expression: string): string
closureJunctionTableName(originalClosureTableName: string): string
Creates a table name for a junction table of a closure table.
columnName(): string
propertyName: string,
customName: string,
embeddedPrefixes: string[],
defaultConstraintName(tableOrName: Table | string, columnName: string): string
eagerJoinRelationAlias(alias: string, propertyPath: string): string
exclusionConstraintName(tableOrName: Table | string, expression: string): string
foreignKeyName(): string
tableOrName: Table | string,
columnNames: string[],
_referencedTablePath?: string,
_referencedColumnNames?: string[],
indexName(): string
tableOrName: Table | string,
columnNames: string[],
where?: string,
joinColumnName(relationName: string, referencedColumnName: string): string
joinTableColumnDuplicationPrefix(columnName: string, index: number): string
joinTableColumnName(): string
tableName: string,
propertyName: string,
columnName?: string,
joinTableInverseColumnName(): string
tableName: string,
propertyName: string,
columnName?: string,
joinTableName(): string
firstTableName: string,
secondTableName: string,
firstPropertyName: string,
secondPropertyName: string,
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.
primaryKeyName(tableOrName: Table | string, columnNames: string[]): string
relationConstraintName(): string
tableOrName: Table | string,
columnNames: string[],
where?: string,
relationName(propertyName: string): string
tableName(targetName: string, userSpecifiedName: string | undefined): string
Normalizes table name.
uniqueConstraintName(tableOrName: Table | string, columnNames: string[]): string