typeorm
Version:
Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
24 lines (23 loc) • 765 B
TypeScript
import { ColumnMetadata } from "../metadata/ColumnMetadata";
import { RelationMetadata } from "../metadata/RelationMetadata";
import { 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;
}