Repository navigation
@142vip.nest typeorm.类.DefaultNamingStrategy
API 参考 / @142vip/nest-typeorm / DefaultNamingStrategy
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:6
Naming strategy that is used by default.
new DefaultNamingStrategy():
DefaultNamingStrategy
DefaultNamingStrategy
materializedPathColumnName:
string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:47
Column name for materialized paths.
NamingStrategyInterface.materializedPathColumnName
nestedSetColumnNames:
object
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:43
Column names for nested sets.
left:
string
right:
string
NamingStrategyInterface.nestedSetColumnNames
checkConstraintName(
tableOrName,expression,isEnum?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:29
Gets the name of the check constraint.
"isEnum" parameter is used to indicate if this check constraint used to handle "simple-enum" type for databases that are not supporting "enum" type out of the box. If "true", constraint is ignored during CHECK constraints synchronization.
string | Table
string
boolean
string
NamingStrategyInterface.checkConstraintName
closureJunctionTableName(
originalClosureTableName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:20
Creates a table name for a junction table of a closure table.
string
Name of the closure table which owns this junction table.
string
NamingStrategyInterface.closureJunctionTableName
columnName(
propertyName,customName,embeddedPrefixes):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:21
Gets the table's column name from the given property name.
string
string
string[]
string
NamingStrategyInterface.columnName
defaultConstraintName(
tableOrName,columnName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:26
Gets the table's default constraint name from the given table name and column name.
string | Table
string
string
NamingStrategyInterface.defaultConstraintName
exclusionConstraintName(
tableOrName,expression):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:30
Gets the name of the exclusion constraint.
string | Table
string
string
NamingStrategyInterface.exclusionConstraintName
foreignKeyName(
tableOrName,columnNames,_referencedTablePath?,_referencedColumnNames?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:27
Gets the name of the foreign key.
string | Table
string[]
string
string[]
string
NamingStrategyInterface.foreignKeyName
protectedgetTableName(tableOrName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:7
string | Table
string
indexName(
tableOrName,columnNames,where?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:28
Gets the name of the index - simple and compose index.
string | Table
string[]
string
string
NamingStrategyInterface.indexName
joinColumnName(
relationName,referencedColumnName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:31
Gets the name of the join column used in the one-to-one and many-to-one relations.
string
string
string
NamingStrategyInterface.joinColumnName
joinTableColumnDuplicationPrefix(
columnName,index):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:33
Columns in join tables can have duplicate names in case of self-referencing. This method provide a resolution for such column names.
string
number
string
NamingStrategyInterface.joinTableColumnDuplicationPrefix
joinTableColumnName(
tableName,propertyName,columnName?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:34
Gets the name of the column used for columns in the junction tables.
The reverse?:boolean parameter denotes if the joinTableColumnName is called for the junctionColumn (false) or the inverseJunctionColumns (true)
string
string
string
string
NamingStrategyInterface.joinTableColumnName
joinTableInverseColumnName(
tableName,propertyName,columnName?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:35
Gets the name of the column used for columns in the junction tables from the invers side of the relationship.
string
string
string
string
NamingStrategyInterface.joinTableInverseColumnName
joinTableName(
firstTableName,secondTableName,firstPropertyName,secondPropertyName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:32
Gets the name of the join table used in the many-to-many relations.
string
string
string
string
string
NamingStrategyInterface.joinTableName
prefixTableName(
prefix,tableName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:42
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.
string
string
string
NamingStrategyInterface.prefixTableName
primaryKeyName(
tableOrName,columnNames):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:23
Gets the table's primary key name from the given table name and column names.
string | Table
string[]
string
NamingStrategyInterface.primaryKeyName
relationConstraintName(
tableOrName,columnNames,where?):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:25
Gets the relation constraint (UNIQUE or UNIQUE INDEX) name from the given table name, column names and WHERE condition, if UNIQUE INDEX used.
string | Table
string[]
string
string
NamingStrategyInterface.relationConstraintName
relationName(
propertyName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:22
Gets the table's relation name from the given property name.
string
string
NamingStrategyInterface.relationName
tableName(
targetName,userSpecifiedName):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:14
Normalizes table name.
string
Name of the target entity that can be used to generate a table name.
string | undefined
For example if user specified a table name in a decorator, e.g. @Entity("name")
string
NamingStrategyInterface.tableName
uniqueConstraintName(
tableOrName,columnNames):string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/naming-strategy/DefaultNamingStrategy.d.ts:24
Gets the table's unique constraint name from the given table name and column names.
string | Table
string[]
string
- @142vip/axios
- @142vip/changelog
- @142vip/commit-linter
- @142vip/copyright
- @142vip/data-source
- @142vip/eslint-config
- @142vip/fairy-cli
- @142vip/grpc
- @142vip/nest
- @142vip/nest-redis
- @142vip/nest-typeorm
- @142vip/oauth2.0
- @142vip/open-source
- @142vip/redis
- @142vip/release-version
- @142vip/typeorm
- @142vip/utils