mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-29 20:14:55 -04:00
42b6ef8ccd
1. Section decorators to [one style](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#sections): without inset at both side and with same length as text. 2. Fix broken [reference](http://docs.sqlalchemy.org/en/latest/core/type_basics.html#generic-types). 3. Convert tabs to space in some small files. 4. Some python code snippets have python+sql syntax hint. Change-Id: I39a7a41ef0b0591c6bf1e610748e2b5c19fc5379 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/361
43 lines
871 B
ReStructuredText
43 lines
871 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
|
|
|