]> 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:57:12 +0000 (22:57 -0400)
commit37fc3e3bf8a481e00a54fdc83b0a927dffbba8a7
treea5ebc41fca348277c1ea97e30c05235f8e87c940
parenta6069c75c2336421fd7b1c1397f87d33675eab27
- 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/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