Skip to main content
Module

x/typeorm/src/index.ts>RemoveEvent

Forked from https://github.com/typeorm/typeorm
Latest
interface RemoveEvent
import { type RemoveEvent } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

RemoveEvent is an object that broadcaster sends to the entity subscriber when entity is being removed to the database.

Properties

connection: Connection

Connection used in the event.

queryRunner: QueryRunner

QueryRunner used in the event transaction. All database operations in the subscribed event listener should be performed using this query runner instance.

manager: EntityManager

EntityManager used in the event transaction. All database operations in the subscribed event listener should be performed using this entity manager instance.

optional
entity: Entity

Entity that is being removed. This may absent if entity is removed without being loaded (for examples by cascades).

metadata: EntityMetadata

Metadata of the entity.

databaseEntity: Entity

Database representation of entity that is being removed.

optional
entityId: any

Id or ids of the entity that is being removed.