UNPKG

typeorm

Version:

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

19 lines (18 loc) 622 B
import type { QueryBuilder } from "./QueryBuilder"; import type { QueryExpressionMap } from "./QueryExpressionMap"; /** * Allows to work with entity relations and perform specific operations with those relations. * * todo: add transactions everywhere */ export declare class RelationUpdater { protected queryBuilder: QueryBuilder<any>; protected expressionMap: QueryExpressionMap; constructor(queryBuilder: QueryBuilder<any>, expressionMap: QueryExpressionMap); /** * Performs set or add operation on a relation. * * @param value */ update(value: any | any[]): Promise<void>; }