import { PgConnection } from '@/infra/repos/postgres/helpers' ; import { ObjectType , Repository } from 'typeorm' ; export abstract class PgRepository { constructor ( private readonly connection = PgConnection . getInstance ( ) ) { } getRepository < Entity > ( entity ) { return this . connection . getRepository ( entity ) ; } }