MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / getIndexName

Method getIndexName

packages/sql/src/schema/DatabaseTable.ts:272–282  ·  view source on GitHub ↗
(
    value: boolean | string,
    columnNames: string[],
    type: 'unique' | 'index' | 'primary' | 'foreign',
  )

Source from the content-addressed store, hash-verified

270 }
271
272 private getIndexName(
273 value: boolean | string,
274 columnNames: string[],
275 type: 'unique' | 'index' | 'primary' | 'foreign',
276 ): string {
277 if (typeof value === 'string') {
278 return value;
279 }
280
281 return this.#platform.getIndexName(this.name, columnNames, type);
282 }
283
284 getEntityDeclaration(
285 namingStrategy: NamingStrategy,

Callers 7

addColumnFromPropertyMethod · 0.95
addIndexMethod · 0.95
addTPTForeignKeyMethod · 0.45
syncMethod · 0.45
initCheckConstraintsMethod · 0.45
processIndexMethod · 0.45
processIndexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected