Skip to main content
Module

x/typeorm/src/index.ts>getRepository

Forked from https://github.com/typeorm/typeorm
Latest
function getRepository
import { getRepository } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Gets repository for the given entity class.

Parameters

entityClass: ObjectType<Entity> | EntitySchema<Entity> | string
optional
connectionName: string = [UNSUPPORTED]

Returns

Repository<Entity>