innomize-typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
20 lines (19 loc) • 779 B
TypeScript
import { Subject } from "../Subject";
import { ObjectLiteral } from "../../common/ObjectLiteral";
/**
* Finds all cascade operations of the given subject and cascade operations of the found cascaded subjects,
* e.g. builds a cascade tree and creates a subjects for them.
*/
export declare class CascadesSubjectBuilder {
protected allSubjects: Subject[];
constructor(allSubjects: Subject[]);
/**
* Builds a cascade subjects tree and pushes them in into the given array of subjects.
*/
build(subject: Subject): void;
/**
* Finds subject where entity like given subject's entity.
* Comparision made by entity id.
*/
protected findByPersistEntityLike(entityTarget: Function | string, entity: ObjectLiteral): Subject | undefined;
}