diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-03-04 23:30:37 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-03-04 23:30:37 +0000 |
| commit | b5366501705f0139c8771dcf3533c61ef77a6a1d (patch) | |
| tree | f20817a0bf45ed8e204d148bec80a2bd0b3e7af2 /lib/sqlalchemy/schema.py | |
| parent | e193854f952e05175bcdedf45944d0ccb4e92994 (diff) | |
| download | sqlalchemy-b5366501705f0139c8771dcf3533c61ef77a6a1d.tar.gz | |
- More docs for r4223
Diffstat (limited to 'lib/sqlalchemy/schema.py')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 86bef287e..fa110545b 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -1550,7 +1550,7 @@ class DDL(object): A literal '%' in a statement must be escaped as '%%'. - Bind parameters are not available in DDL statements. + SQL bind parameters are not available in DDL statements. on Optional filtering criteria. May be a string or a callable @@ -1578,6 +1578,10 @@ class DDL(object): context Optional dictionary, defaults to None. These values will be available for use in string substitutions on the DDL statement. + + bind + Optional. A ``Connectable``, used by default when ``execute()`` + is invoked without a bind argument. """ if not isinstance(statement, basestring): @@ -1626,7 +1630,10 @@ class DDL(object): """Link execution of this DDL to the DDL lifecycle of a SchemaItem. Links this ``DDL`` to a ``Table`` or ``MetaData`` instance, executing - it when that schema item is created or dropped. + it when that schema item is created or dropped. The DDL statement + will be executed using the same Connection and transactional context + as the Table create/drop itself. The ``.bind`` property of this + statement is ignored. event One of the events defined in the schema item's ``.ddl_events``; |
