API 参考
    正在准备搜索索引...

    接口 UpdateEvent<Entity>

    UpdateEvent is an object that broadcaster sends to the entity subscriber when entity is being updated in the database.

    interface UpdateEvent<Entity> {
        connection: DataSource;
        databaseEntity: Entity;
        entity: undefined | ObjectLiteral;
        manager: EntityManager;
        metadata: EntityMetadata;
        queryRunner: QueryRunner;
        updatedColumns: ColumnMetadata[];
        updatedRelations: RelationMetadata[];
    }

    类型参数

    • Entity
    索引

    属性

    connection: DataSource

    Connection used in the event.

    databaseEntity: Entity

    Updating entity in the database.

    entity: undefined | ObjectLiteral

    Updating entity.

    manager: EntityManager

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

    metadata: EntityMetadata

    Metadata of the entity.

    queryRunner: QueryRunner

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

    updatedColumns: ColumnMetadata[]

    List of updated columns. In query builder has no affected

    updatedRelations: RelationMetadata[]

    List of updated relations. In query builder has no affected