]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added an "inline_ddl" flag to Constraint. this controls if DDL is emitted
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 31 May 2009 16:33:00 +0000 (16:33 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 31 May 2009 16:33:00 +0000 (16:33 +0000)
commit048cd6c154d61aca877ba545568177a135ad3c1b
tree07d912eae53d85cdb5086f9bf09c142a167c7d35
parent1c6ae364df4aade915be2f4e5e25b41cdf5aa81c
- added an "inline_ddl" flag to Constraint.  this controls if DDL is emitted
from within CREATE TABLE, and is flipped off automatically when the item
is placed within an Add/DropConstraint object.
- the use_alter flag on ForeignKey is now a shortcut option for operations that
can be hand-constructed using the DDL() event system.  A side effect of this refactor
is that ForeignKeyConstraint objects with use_alter=True will *not* be emitted on
SQLite, which does not support ALTER for foreign keys.  This has no effect on SQLite's
behavior since SQLite does not actually honor FOREIGN KEY constraints.
- the "on" callable passed to DDL() needs to accept **kw arguments.
In the case of MetaData before/after create/drop, the list of
Table objects for which CREATE/DROP DDL is to be issued is passed
as the kw argument "tables".   This is necessary for metadata-level
DDL that is dependent on the presence of specific tables.
- the "metadata" argument is removed from DefaultGenerator and subclasses,
but remains locally present on Sequence, which is a standalone construct
in DDL.
- really trying to pare down usage of testing.mock_engine()
06CHANGES
lib/sqlalchemy/engine/ddl.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
test/engine/ddlevents.py
test/engine/metadata.py
test/sql/constraints.py
test/testlib/engines.py