Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mandarinets/orm-core/entity-registry/entityRegistry.ts>EntityRegistry

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
class EntityRegistry
import { EntityRegistry } from "https://deno.land/x/mandarinets@v2.3.2/orm-core/entity-registry/entityRegistry.ts";

This class represents the registry where all the entities are added in order for mandarine to work with them at and after mandarine compile time.

Properties

private
entities: Map<string, Mandarine.ORM.Entity.Table>

Methods

findEntityByInstanceType(initializedInstance: any): Mandarine.ORM.Entity.Table | undefined
getAllEntities(): Array<Mandarine.ORM.Entity.Table>
getColumnsFromEntity(entityInstance: any): Array<Mandarine.ORM.Entity.Decorators.Column>
getEntity(schema: string, table: string)
register(
schemaName: string,
instance: any,
tableName: string,
)