Re: [sqlalchemy] Session: close(), remove(), expire_all() and expunge_all()

2011-03-19 Thread Michael Bayer
if it helps, I was just talking to my co-author (SQLA book) about how when I first wrote versions 0.1, 0.2, my concept of the Session was pretty much what you thought here. We hardy had "expire" at all, it seemed redundant versus expunge() to me (at that time called clear()). Only around 0

Re: [sqlalchemy] Session: close(), remove(), expire_all() and expunge_all()

2011-03-19 Thread Israel Ben Guilherme Fonseca
Thank you very much for the answers. No doubts for now. 2011/3/18 Michael Bayer > > On Mar 18, 2011, at 2:55 PM, Israel Ben Guilherme Fonseca wrote: > > > Hi everybody, > > > > I'm new with SQLAlchemy and I'm trying to understand better the Session > object. > > > > First of all, why the expire

[sqlalchemy] Re: trouble with metaclass

2011-03-19 Thread farcat
OK, dumb error, move Base.metadata.create_all(engine) below table1 = tablemeta("table1") and it works. This works when I create the columns via the temp dict in __new__ not when I do so in __init__ (it complains about missing __tabledata__), but why? On Mar 18, 6:47 pm, farcat wrote: > Well, >