UNPKG

nest-typeorm-sharding-repository

Version:

This module extends TypeORM capabilities to support distributed database environments with List and Range-based sharding strategies in a NestJS application.

4 lines (3 loc) 224 B
import { BaseEntity } from "typeorm"; import { ShardingBaseEntity } from "../sharding-base-entity"; export declare function getRepositoryToken<T extends typeof BaseEntity | typeof ShardingBaseEntity>(entityType: T): string;