Skip to main content
Module

x/typeorm/src/index.ts>EntityManager#getTreeRepository

Forked from https://github.com/typeorm/typeorm
Latest
method EntityManager.prototype.getTreeRepository
Re-export
import { EntityManager } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Gets tree repository for the given entity class or name. If single database connection mode is used, then repository is obtained from the repository aggregator, where each repository is individually created for this entity manager. When single database connection is not used, repository is being obtained from the connection.

Parameters

target: ObjectType<Entity> | EntitySchema<Entity> | string

Returns

TreeRepository<Entity>