Skip to main content
Module

x/typeorm/src/metadata/CheckMetadata.ts>CheckMetadata

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

Check metadata contains all information about table's check constraints.

Constructors

new
CheckMetadata(options: { entityMetadata: EntityMetadata; args?: CheckMetadataArgs; })

Properties

entityMetadata: EntityMetadata

Entity metadata of the class to which this check constraint is applied.

expression: string

Check expression.

optional
givenName: string

User specified check constraint name.

name: string

Final check constraint name. If check constraint name was given by a user then it stores normalized (by naming strategy) givenName. If check constraint name was not given then its generated.

optional
target: Function | string

Target class to which metadata is applied.

Methods

build(namingStrategy: NamingStrategyInterface): this

Builds some depend check constraint properties. Must be called after all entity metadata's properties map, columns and relations are built.