]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] New reflection feature "autoload_replace";
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 20:54:28 +0000 (15:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 20:54:28 +0000 (15:54 -0500)
commit96dce7686c6a32ab03ce2ccaabb7a9b4ff0fe56b
tree9468e4f0c5ee4748a21c2a2aaba7d1ddb0a74db0
parentb7f7ed210501a405938bf55e08a47e35674f0247
- [feature] New reflection feature "autoload_replace";
when set to False on Table, the Table can be autoloaded
without existing columns being replaced.  Allows
more flexible chains of Table construction/reflection
to be constructed, including that it helps with
combining Declarative with table reflection.
See the new example on the wiki.  [ticket:2356]

- [bug] Improved the API for add_column() such that
if the same column is added to its own table,
an error is not raised and the constraints
don't get doubled up.  Also helps with some
reflection/declarative patterns. [ticket:2356]
CHANGES
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/schema.py
test/engine/test_reflection.py
test/sql/test_metadata.py