]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] To complement [ticket:2547], types
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Aug 2012 22:35:25 +0000 (18:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Aug 2012 22:35:25 +0000 (18:35 -0400)
commita2468c8a31c8308cdb5740f2401e9dedd003836e
treee4cc3eb17c59f678ea2919ecd0880f1df7854b6e
parent20fa7fe2b85d356e3da08191f01d7528ded42033
- [feature] To complement [ticket:2547], types
can now provide "bind expressions" and
"column expressions" which allow compile-time
injection of SQL expressions into statements
on a per-column or per-bind level.   This is
to suit the use case of a type which needs
to augment bind- and result- behavior at the
SQL level, as opposed to in the Python level.
Allows for schemes like transparent encryption/
decryption, usage of Postgis functions, etc.
[ticket:1534]
- update postgis example fully.
- still need to repair the result map propagation
here to be transparent for cases like "labeled column".
12 files changed:
CHANGES
examples/postgis/postgis.py
lib/sqlalchemy/dialects/access/base.py
lib/sqlalchemy/dialects/firebird/base.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/types.py
test/aaa_profiling/test_compiler.py
test/lib/profiles.txt
test/sql/test_returning.py
test/sql/test_type_expressions.py [new file with mode: 0644]