@tsdi/typeorm-adapter
Version:
@tsdi/typeorm-adapter is typeorm adapter orm for boot application, mvc frameworks on server.
13 lines (12 loc) • 530 B
TypeScript
import { Type } from '@tsdi/ioc';
import { Repository, MongoRepository, Connection } from 'typeorm';
export declare class TypeOrmHelper {
private service;
private injector;
constructor();
getConnection(connectName?: string): Connection;
getRepository<T>(type: Type<T>, connectName?: string): Repository<T>;
getCustomRepository<T extends Repository<any>>(type: Type<T>, connectName?: string): T;
getMongoRepository<T>(type: Type<T>, connectName?: string): MongoRepository<T>;
static ρAnn(): any;
}