def from_query(query, engine_or_session=None, limit=None, **kwargs):
    """
    Execute an ORM style query, and return the result in
    :class:`prettytable.PrettyTable`.

    :type query: Query
    :param query: an ``sqlalchemy.orm.Query`` object.

    :type engine: Any
    :param engine: query is always associated with a session, this parameter
        just reserve the arg place.

    :type limit: int
    :param limit: int, limit rows to return.

    :rtype: PrettyTable
    :return: a ``prettytable.PrettyTable`` object

    **中文文档**

    将通过 ORM 的查询结果中的数据放入 :class:`PrettyTable` 中.
    """
    if limit is not None:
        query = query.limit(limit)
    result_proxy = execute_query_return_result_proxy(query)
    return from_db_cursor(result_proxy.cursor)
Execute an ORM style query, and return the result in
    :class:`prettytable.PrettyTable`.

    :type query: Query
    :param query: an ``sqlalchemy.orm.Query`` object.

    :type engine: Any
    :param engine: query is always associated with a session, this parameter
        just reserve the arg place.

    :type limit: int
    :param limit: int, limit rows to return.

    :rtype: PrettyTable
    :return: a ``prettytable.PrettyTable`` object

    **中文文档**

    将通过 ORM 的查询结果中的数据放入 :class:`PrettyTable` 中.