UNPKG

1.13 kBTypeScriptView Raw
1import { Type } from '@nestjs/common';
2import { Observable } from 'rxjs';
3import { Connection, ConnectionOptions } from 'typeorm';
4import { EntityClassOrSchema } from '../interfaces/entity-class-or-schema.type';
5export declare function getRepositoryToken(entity: EntityClassOrSchema, connection?: Connection | ConnectionOptions | string): string;
6export declare function getCustomRepositoryToken(repository: Function): string;
7export declare function getConnectionToken(connection?: Connection | ConnectionOptions | string): string | Function | Type<Connection>;
8export declare function getConnectionPrefix(connection?: Connection | ConnectionOptions | string): string;
9export declare function getEntityManagerToken(connection?: Connection | ConnectionOptions | string): string | Function;
10export declare function handleRetry(retryAttempts?: number, retryDelay?: number, connectionName?: string, verboseRetryLog?: boolean, toRetry?: (err: any) => boolean): <T>(source: Observable<T>) => Observable<T>;
11export declare function getConnectionName(options: ConnectionOptions): string;
12export declare const generateString: () => string;