Hello,
at http://www.sqlalchemy.org/docs/metadata.myt#metadata_creating the
deprecated 'engine' keyword argument was still used in the text, the
samples already use 'connectable'. The attached patch fixes this.
--
Cheers, Sol.
Index: doc/build/content/metadata.txt
===================================================================
--- doc/build/content/metadata.txt (revision 1806)
+++ doc/build/content/metadata.txt (working copy)
@@ -266,7 +266,7 @@
### Creating and Dropping Database Tables [EMAIL PROTECTED]
-Creating and dropping individual tables can be done via the `create()` and `drop()` methods of `Table`; these methods take an optional `engine` parameter which references an `Engine` or a `Connection`. If not supplied, the `Engine` bound to the `MetaData` will be used, else an error is raised:
+Creating and dropping individual tables can be done via the `create()` and `drop()` methods of `Table`; these methods take an optional `connectable` keyword argument which references an `Engine` or a `Connection`. If not supplied, the `Engine` bound to the `MetaData` will be used or an error is raised:
{python}
meta = BoundMetaData('sqlite:///:memory:')
@@ -296,7 +296,7 @@
employees.create(connectable=e, checkfirst=True)
employees.drop(checkfirst=False)
-Entire groups of Tables can be created and dropped directly from the `MetaData` object with `create_all()` and `drop_all()`. These methods always check for the existence of each table before creating or dropping. Each method takes an optional `engine` keyword argument which can reference an `Engine` or a `Connection`. If no engine is specified, the underlying bound `Engine`, if any, is used:
+Entire groups of Tables can be created and dropped directly from the `MetaData` object with `create_all()` and `drop_all()`. These methods always check for the existence of each table before creating or dropping. Each method takes an optional `connectable` keyword argument which can reference an `Engine` or a `Connection`. If no connectable is specified, the underlying bound `Engine`, if any, is used:
{python}
engine = create_engine('sqlite:///:memory:')
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users