{"version":3,"sources":["../browser/src/subscriber/event/UpdateEvent.ts"],"names":[],"mappings":"","file":"UpdateEvent.js","sourcesContent":["import {ColumnMetadata} from \"../../metadata/ColumnMetadata\";\nimport {RelationMetadata} from \"../../metadata/RelationMetadata\";\nimport {EntityManager} from \"../../entity-manager/EntityManager\";\nimport {QueryRunner} from \"../../query-runner/QueryRunner\";\nimport {Connection} from \"../../connection/Connection\";\nimport { EntityMetadata } from \"../../metadata/EntityMetadata\";\n\n/**\n * UpdateEvent is an object that broadcaster sends to the entity subscriber when entity is being updated in the database.\n */\nexport interface UpdateEvent<Entity> {\n\n /**\n * Connection used in the event.\n */\n connection: Connection;\n\n /**\n * QueryRunner used in the event transaction.\n * All database operations in the subscribed event listener should be performed using this query runner instance.\n */\n queryRunner: QueryRunner;\n\n /**\n * EntityManager used in the event transaction.\n * All database operations in the subscribed event listener should be performed using this entity manager instance.\n */\n manager: EntityManager;\n\n /**\n * Updating entity.\n */\n entity: Entity;\n\n /**\n * Metadata of the entity.\n */\n metadata: EntityMetadata;\n\n /**\n * Updating entity in the database.\n */\n databaseEntity: Entity;\n\n /**\n * List of updated columns. In query builder has no affected\n */\n updatedColumns: ColumnMetadata[];\n\n /**\n * List of updated relations. In query builder has no affected\n */\n updatedRelations: RelationMetadata[];\n\n}"],"sourceRoot":"../.."}
|