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

    接口 AfterQueryEvent<Entity>

    BeforeQueryEvent is an object that broadcaster sends to the entity subscriber before query is ran against the database.

    interface AfterQueryEvent<Entity> {
        connection: DataSource;
        error?: any;
        executionTime?: number;
        manager: EntityManager;
        parameters?: any[];
        query: string;
        queryRunner: QueryRunner;
        rawResults?: any;
        success: boolean;
    }

    类型参数

    • Entity

    层级 (查看层级一览)

    索引

    属性

    connection: DataSource

    Connection used in the event.

    error?: any

    The error thrown if the query was unsuccessful.

    executionTime?: number

    The duration of the query execution, in milliseconds.

    manager: EntityManager

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

    parameters?: any[]

    Parameters used in the query.

    query: string

    Query that is being executed.

    queryRunner: QueryRunner

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

    rawResults?: any

    The raw results from the database if the query was successful.

    success: boolean

    Whether the query was successful.