typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
26 lines (25 loc) • 634 B
TypeScript
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;
/**
* Column mode in which column will work.
*
* todo: find name better then "mode".
*/
readonly mode: ColumnMode;
/**
* Extra column options.
*/
readonly options: ColumnOptions;
}