mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-26 02:22:13 -04:00
- add some context to the declarative section indicating this is not
the introductory material for these topics
Change-Id: I358ba8c32520ce3950a727216bc019e33377e7b9
(cherry picked from commit 284009683d)
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
Basic Use
|
||||
=========
|
||||
|
||||
.. seealso::
|
||||
|
||||
This section describes specifics about how the Declarative system
|
||||
interacts with the SQLAlchemy ORM. For a general introduction
|
||||
to class mapping, see :ref:`ormtutorial_toplevel` as well as
|
||||
:ref:`mapper_config_toplevel`.
|
||||
|
||||
SQLAlchemy object-relational configuration involves the
|
||||
combination of :class:`.Table`, :func:`.mapper`, and class
|
||||
objects to define a mapped class.
|
||||
|
||||
+4
-2
@@ -10,8 +10,10 @@ as declarative will determine this from the class itself. The various
|
||||
|
||||
.. seealso::
|
||||
|
||||
:ref:`inheritance_toplevel` - general introduction to inheritance
|
||||
mapping with Declarative.
|
||||
This section describes some specific details on how the Declarative system
|
||||
interacts with SQLAlchemy ORM inheritance configuration. See
|
||||
:ref:`inheritance_toplevel` for a general introduction to inheritance
|
||||
mapping.
|
||||
|
||||
Joined Table Inheritance
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
Configuring Relationships
|
||||
=========================
|
||||
|
||||
.. seealso::
|
||||
|
||||
This section describes specifics about how the Declarative system
|
||||
interacts with SQLAlchemy ORM relationship constructs. For general
|
||||
information about setting up relationships between mappings,
|
||||
see :ref:`ormtutorial_toplevel` and :ref:`relationship_patterns`.
|
||||
|
||||
Relationships to other classes are done in the usual way, with the added
|
||||
feature that the class specified to :func:`~sqlalchemy.orm.relationship`
|
||||
may be a string name. The "class registry" associated with ``Base``
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
Table Configuration
|
||||
===================
|
||||
|
||||
.. seealso::
|
||||
|
||||
This section describes specifics about how the Declarative system
|
||||
defines :class:`.Table` objects that are to be mapped with the
|
||||
SQLAlchemy ORM. For general information on :class:`.Table` objects
|
||||
see :ref:`metadata_describing_toplevel`.
|
||||
|
||||
Table arguments other than the name, metadata, and mapped Column
|
||||
arguments are specified using the ``__table_args__`` class attribute.
|
||||
This attribute accommodates both positional as well as keyword
|
||||
|
||||
Reference in New Issue
Block a user