summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-11-17 12:03:46 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-11-30 18:04:08 -0500
commitde68627dd1ba9c2dd44bb3d11be1a3945b285205 (patch)
tree0f80ae8fb55c5363fafd4fef48a728165b3e746e /lib/sqlalchemy/dialects/postgresql/base.py
parent1057b47bca2522e45d9621a709d033aa4fb88888 (diff)
downloadsqlalchemy-de68627dd1ba9c2dd44bb3d11be1a3945b285205.tar.gz
add new pattern for single inh column override
Added a new parameter :paramref:`_orm.mapped_column.use_existing_column` to accommodate the use case of a single-table inheritance mapping that uses the pattern of more than one subclass indicating the same column to take place on the superclass. This pattern was previously possible by using :func:`_orm.declared_attr` in conjunction with locating the existing column in the ``.__table__`` of the superclass, however is now updated to work with :func:`_orm.mapped_column` as well as with pep-484 typing, in a simple and succinct way. Fixes: #8822 Change-Id: I2296a4a775da976c642c86567852cdc792610eaf
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
0 files changed, 0 insertions, 0 deletions