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

Function createPartitionDefinition

packages/sql/src/schema/partitioning.ts:267–268  ·  view source on GitHub ↗
(type: EntityPartitionBy['type'], expression: string)

Source from the content-addressed store, hash-verified

265};
266
267const createPartitionDefinition = (type: EntityPartitionBy['type'], expression: string): string =>
268 `${type.toLowerCase()} (${normalizeWhitespace(expression)})`;
269
270/** @internal */
271export function normalizePartitionDefinition(value: string): string {

Callers 1

getTablePartitioningFunction · 0.85

Calls 1

normalizeWhitespaceFunction · 0.85

Tested by

no test coverage detected