import { EmbeddedMetadata } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/metadata/EmbeddedMetadata.ts";
Contains all information about entity's embedded property.
Constructors
Properties
Columns inside this embed.
Embed metadatas from all levels of the parent tree.
example: post[data][information][counters].id where "data", "information" and "counters" are embeds this method will return [embed metadata of data, embed metadata of information, embed metadata of counters]
Prefix of the embedded, used instead of propertyName. If set to empty string or false, then prefix is not set at all.
Returns embed metadatas from all levels of the parent tree.
example: post[data][information][counters].id where "data", "information" and "counters" are embeds this method will return [embed metadata of data, embed metadata of information, embed metadata of counters]
Nested embeddable in this embeddable (which has current embedded as parent embedded).
Entity metadata where this embedded is.
Indices applied to the embed columns.
Indices of this embed and all indices from its child embeds.
Entity listeners inside this embed.
Relations of this embed and all relations from its child embeds.
Parent embedded in the case if this embedded inside other embedded.
Returns array of property names of current embed and all its parent embeds.
example: post[data][information][counters].id where "data", "information" and "counters" are embeds we need to get value of "id" column from the post real entity object. this method will return ["data", "information", "counters"]
Gets the prefix of the columns. By default its a property name of the class where this prefix is. But if custom prefix is set then it takes its value as a prefix. However if custom prefix is set to empty string or false, then prefix to column is not applied at all.
Gets full path to this embedded property (including embedded property name). Full path is relevant when embedded is used inside other embeds (one or multiple nested). For example it will return "counters.subcounters".
Relation counts inside this embed.
Relation counts of this embed and all relation counts from its child embeds.
Relation ids inside this embed.
Relation ids of this embed and all relation ids from its child embeds.
Relations inside this embed.
Relations of this embed and all relations from its child embeds.
Uniques applied to the embed columns.
Uniques of this embed and all uniques from its child embeds.
Methods
Creates a new embedded object.