From: Mike Bayer Date: Sat, 1 Mar 2008 16:23:49 +0000 (+0000) Subject: add note about global metadata removed [ticket:983] X-Git-Tag: rel_0_4_4~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fee8e963de1fe050c79419dc2b176e8135ca448;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add note about global metadata removed [ticket:983] --- diff --git a/doc/build/content/intro.txt b/doc/build/content/intro.txt index d9882270b2..d6ded5bdf8 100644 --- a/doc/build/content/intro.txt +++ b/doc/build/content/intro.txt @@ -118,6 +118,10 @@ The `BoundMetaData` name is removed. Now, you just use `MetaData`. Additionall Additionally, `DynamicMetaData` is now known as `ThreadLocalMetaData`. +### "Magic" Global MetaData removed {@name=global} + +There was an old way to specify `Table` objects using an implicit, global `MetaData` object. To do this you'd omit the second positional argument, and specify `Table('tablename', Column(...))`. This no longer exists in 0.4 and the second `MetaData` positional argument is required, i.e. `Table('tablename', meta, Column(...))`. + ### Some existing select() methods become generative {@name=generative} The methods `correlate()`, `order_by()`, and `group_by()` on the `select()` construct now return a **new** select object, and do not change the original one. Additionally, the generative methods `where()`, `column()`, `distinct()`, and several others have been added: