Files
sqlalchemy/doc/build/orm/session_api.rst
T
Kataev Denis 42b6ef8ccd Repair formatting throughout documentation
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
2017-05-22 17:53:09 -04:00

79 lines
1.7 KiB
ReStructuredText

.. module:: sqlalchemy.orm.session
Session API
===========
Session and sessionmaker()
--------------------------
.. autoclass:: sessionmaker
:members:
:inherited-members:
.. autoclass:: sqlalchemy.orm.session.Session
:members:
:inherited-members:
.. autoclass:: sqlalchemy.orm.session.SessionTransaction
:members:
Session Utilities
-----------------
.. autofunction:: make_transient
.. autofunction:: make_transient_to_detached
.. autofunction:: object_session
.. autofunction:: sqlalchemy.orm.util.was_deleted
Attribute and State Management Utilities
----------------------------------------
These functions are provided by the SQLAlchemy attribute
instrumentation API to provide a detailed interface for dealing
with instances, attribute values, and history. Some of them
are useful when constructing event listener functions, such as
those described in :doc:`/orm/events`.
.. currentmodule:: sqlalchemy.orm.util
.. autofunction:: object_state
.. currentmodule:: sqlalchemy.orm.attributes
.. autofunction:: del_attribute
.. autofunction:: get_attribute
.. autofunction:: get_history
.. autofunction:: init_collection
.. autofunction:: flag_modified
.. autofunction:: flag_dirty
.. function:: instance_state
Return the :class:`.InstanceState` for a given
mapped object.
This function is the internal version
of :func:`.object_state`. The
:func:`.object_state` and/or the
:func:`.inspect` function is preferred here
as they each emit an informative exception
if the given object is not mapped.
.. autofunction:: sqlalchemy.orm.instrumentation.is_instrumented
.. autofunction:: set_attribute
.. autofunction:: set_committed_value
.. autoclass:: History
:members: