Skip to main content
Module

x/typeorm/src/index.ts>Entity

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

This decorator is used to mark classes that will be an entity (table or document depend on database type). Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.

Parameters

optional
options: EntityOptions

Returns

Function

This decorator is used to mark classes that will be an entity (table or document depend on database type). Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.

Parameters

optional
name: string
optional
options: EntityOptions

Returns

Function