def from_query(query, engine_or_session=None, limit=None, **kwargs):
if limit is not None:<EOL><INDENT>query = query.limit(limit)<EOL><DEDENT>result_proxy = execute_query_return_result_proxy(query)<EOL>return from_db_cursor(result_proxy.cursor)<EOL>
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` 中.