UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

24 lines (23 loc) 780 B
import type { ColumnMetadata } from "../metadata/ColumnMetadata"; import type { RelationMetadata } from "../metadata/RelationMetadata"; import type { Subject } from "./Subject"; /** * Change for insertion or updation of the column of the subject. */ export interface SubjectChangeMap { /** * Column that needs to be changed. * Either column, either relation must be set in the change. */ column?: ColumnMetadata; /** * Relation that needs to be changed. * Either column, either relation must be set in the change. */ relation?: RelationMetadata; /** * Value needs to be inserted into given column. * This value can also be another subject, when this column has a referenced column. */ value: Subject | any; }