UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL, MongoDB databases.

31 lines (30 loc) 815 B
import { ColumnOptions } from "../decorator/options/ColumnOptions"; import { ColumnMode } from "./types/ColumnMode"; /** * Arguments for ColumnMetadata class. */ export interface ColumnMetadataArgs { /** * Class to which column is applied. */ readonly target: Function | string; /** * Class's property name to which column is applied. */ readonly propertyName: string; /** * Class's property type (reflected) to which column is applied. * * todo: check when this is not set, because for the entity schemas we don't set it. */ /** * Column mode in which column will work. * * todo: find name better then "mode". */ readonly mode: ColumnMode; /** * Extra column options. */ readonly options: ColumnOptions; }