@nestjs/typeorm
Version:
Nest - modern, fast, powerful node.js web framework (@typeorm)
16 lines (15 loc) • 658 B
TypeScript
/**
* Tracks active data source names at runtime in order to prevent multiple
* data sources from being registered under the same name. Registering two
* data sources with the same name is unsupported by TypeORM — the second
* registration silently overrides the first — which is a common source
* of hard-to-debug configuration issues.
*/
export declare class DataSourceNameRegistry {
private static readonly logger;
private static readonly registeredNames;
static register(dataSourceName: string): void;
static unregister(dataSourceName: string): void;
static has(dataSourceName: string): boolean;
static clear(): void;
}