typeorm
Version:
Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
29 lines (28 loc) • 1.04 kB
TypeScript
import type { EntityManager } from "../../entity-manager/EntityManager";
import type { DataSource } from "../../data-source/DataSource";
import type { QueryRunner } from "../../query-runner/QueryRunner";
/**
* BaseEvent represents the base class for all events that broadcaster sends to the entity subscriber when an event occurs.
*/
export interface BaseEvent {
/**
* DataSource used in the event.
*/
dataSource: DataSource;
/**
* DataSource used in the event.
*
* @deprecated since 1.0.0. Use {@link dataSource} instance instead.
*/
connection: DataSource;
/**
* QueryRunner used in the event transaction.
* All database operations in the subscribed event listener should be performed using this query runner instance.
*/
queryRunner: QueryRunner;
/**
* EntityManager used in the event transaction.
* All database operations in the subscribed event listener should be performed using this entity manager instance.
*/
manager: EntityManager;
}