[sqlalchemy] Re: about database connections, engines, dispose and recommended usage

2010-06-27 Thread Faheem Mitha
[This message has also been posted.] See followup comment below... On Sat, 15 May 2010 07:44:04 -0700 (PDT), Michael Bayer wrote: > > > On May 15, 2:52 am, Faheem Mitha wrote: >> Hi, >> >> I was trying to figure out a way to close all connections to a db. >> >> Apparently >> >> db = create_engi

[sqlalchemy] Re: about database connections, engines, dispose and recommended usage

2010-05-15 Thread Michael Bayer
On May 15, 2:52 am, Faheem Mitha wrote: > Hi, > > I was trying to figure out a way to close all connections to a db. > > Apparently > > db = create_engine(dbstring) > conn = db.connect() > [...] > conn.close() > > doesn't actually close the connection initiated by conn. I have to call > > db.dis