diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-09-10 21:23:04 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-09-10 21:23:04 +0000 |
| commit | 0c26713326f8e9367e58f9c693455b055a1aef8c (patch) | |
| tree | b711b4e7eb804fe9bfa9d70431bcc2793ca39f28 /lib/sqlalchemy | |
| parent | d987afc8d9bedb82bafe15b38b65000944daf376 (diff) | |
| download | sqlalchemy-0c26713326f8e9367e58f9c693455b055a1aef8c.tar.gz | |
docs
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 9bebf46c9..8a05765db 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -2057,6 +2057,7 @@ class DDL(DDLElement): drop_spow = DDL('ALTER TABLE users SET secretpowers FALSE') connection.execute(drop_spow) + """ __visit_name__ = "ddl" @@ -2079,11 +2080,11 @@ class DDL(DDLElement): executing database dialect:: DDL('something', on='postgresql') - - If a tuple, specifies multiple dialect names: - + + If a tuple, specifies multiple dialect names:: + DDL('something', on=('postgresql', 'mysql')) - + If a callable, it will be invoked with three positional arguments as well as optional keyword arguments: @@ -2098,7 +2099,7 @@ class DDL(DDLElement): connection The ``Connection`` being used for DDL execution - **kw + \**kw Keyword arguments which may be sent include: tables - a list of Table objects which are to be created/ dropped within a MetaData.create_all() or drop_all() method |
