mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-31 04:48:02 -04:00
9561321d03
and extensions into an external library, and also reorganizes most large documentation pages into many small areas to reduce scrolling and better present the context into a more fine-grained hierarchy.
43 lines
862 B
ReStructuredText
43 lines
862 B
ReStructuredText
.. _query_api_toplevel:
|
|
.. module:: sqlalchemy.orm
|
|
|
|
Query API
|
|
=========
|
|
|
|
The Query Object
|
|
----------------
|
|
|
|
:class:`~.Query` is produced in terms of a given :class:`~.Session`, using the :meth:`~.Session.query` method::
|
|
|
|
q = session.query(SomeMappedClass)
|
|
|
|
Following is the full interface for the :class:`.Query` object.
|
|
|
|
.. autoclass:: sqlalchemy.orm.query.Query
|
|
:members:
|
|
|
|
ORM-Specific Query Constructs
|
|
-----------------------------
|
|
|
|
.. autofunction:: sqlalchemy.orm.aliased
|
|
|
|
.. autoclass:: sqlalchemy.orm.util.AliasedClass
|
|
|
|
.. autoclass:: sqlalchemy.orm.util.AliasedInsp
|
|
|
|
.. autoclass:: sqlalchemy.orm.query.Bundle
|
|
:members:
|
|
|
|
.. autoclass:: sqlalchemy.util.KeyedTuple
|
|
:members: keys, _fields, _asdict
|
|
|
|
.. autoclass:: sqlalchemy.orm.strategy_options.Load
|
|
:members:
|
|
|
|
.. autofunction:: join
|
|
|
|
.. autofunction:: outerjoin
|
|
|
|
.. autofunction:: with_parent
|
|
|