summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exc.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-01-12 20:36:06 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-01-12 20:36:06 +0000
commit32add82d01423732c241ec2f8a422fe16621b5e0 (patch)
treef5f83c918db505d349c3aff4e734004594a5e4bd /lib/sqlalchemy/exc.py
parentdc0bbdd92af2ff2a3fb21c08be46f7d22662e5b8 (diff)
downloadsqlalchemy-32add82d01423732c241ec2f8a422fe16621b5e0.tar.gz
- Can now specify Column objects on subclasses which have no
table of their own (i.e. use single table inheritance). The columns will be appended to the base table, but only mapped by the subclass. - For both joined and single inheriting subclasses, the subclass will only map those columns which are already mapped on the superclass and those explicit on the subclass. Other columns that are present on the `Table` will be excluded from the mapping by default, which can be disabled by passing a blank `exclude_properties` collection to the `__mapper_args__`. This is so that single-inheriting classes which define their own columns are the only classes to map those columns. The effect is actually a more organized mapping than you'd normally get with explicit `mapper()` calls unless you set up the `exclude_properties` arguments explicitly. - docs/tests
Diffstat (limited to 'lib/sqlalchemy/exc.py')
0 files changed, 0 insertions, 0 deletions