]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add common base class for all SQL col expression objects
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Nov 2022 21:42:22 +0000 (16:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Nov 2022 16:55:23 +0000 (11:55 -0500)
commitcaa9293e2e0d0b186a24962ad72b954271934913
tree7ea771ca0d1db7dbadadfb7428ab58a4f89d6bf6
parent46e6693cb3db445f18aa25d5e4ca613504bd12b3
add common base class for all SQL col expression objects

Added a new type :class:`.SQLColumnExpression` which may be indicated in
user code to represent any SQL column oriented expression, including both
those based on :class:`.ColumnElement` as well as on ORM
:class:`.QueryableAttribute`. This type is a real class, not an alias, so
can also be used as the foundation for other objects.

Fixes: #8847
Change-Id: I3161bdff1c9f447793fce87864e1774a90cd4146
13 files changed:
doc/build/changelog/unreleased_20/8847.rst [new file with mode: 0644]
doc/build/core/sqlelement.rst
doc/build/orm/internals.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql/__init__.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
test/ext/mypy/plain_files/common_sql_element.py [new file with mode: 0644]