]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Improved the examples in ``examples/generic_associations``, including
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Jul 2013 02:56:34 +0000 (22:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Jul 2013 02:56:34 +0000 (22:56 -0400)
commitaf61551a112b5cedcaf56470101b8a4f8523573d
tree2a99bdf94306c6282a79e9eb9548e71e6651e203
parent261b46d9477b58dfabbefbe4e01c8c5a9f912f24
- Improved the examples in ``examples/generic_associations``, including
that ``discriminator_on_association.py`` makes use of single table
inheritance do the work with the "discriminator".  Also
added a true "generic foreign key" example, which works similarly
to other popular frameworks in that it uses an open-ended integer
to point to any other table, foregoing traditional referential
integrity.  While we don't recommend this pattern, information wants
to be free.  Also in 0.8.3.

- Added a convenience class decorator :func:`.as_declarative`, is
a wrapper for :func:`.declarative_base` which allows an existing base
class to be applied using a nifty class-decorated approach.  Also
in 0.8.3.
doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst
doc/build/orm/extensions/declarative.rst
examples/generic_associations/__init__.py
examples/generic_associations/discriminator_on_association.py
examples/generic_associations/generic_fk.py [new file with mode: 0644]
examples/generic_associations/table_per_association.py
examples/generic_associations/table_per_related.py
lib/sqlalchemy/ext/declarative/__init__.py
lib/sqlalchemy/ext/declarative/api.py