Re: [sqlalchemy] autocommit for execute command (was Re: postgresql "CREATE SCHEMA" statement does not create schema)

2010-01-24 Thread Michael Bayer
On Jan 24, 2010, at 7:22 AM, Faheem Mitha wrote: > I'm belatedly following up to this earlier posting. > > The problem there was that I wasn't setting autocommit=True in > text(). However, I was wondering what I can do if I want to directly > write > > conn.execute("somestuff") > conn.close() >

[sqlalchemy] autocommit for execute command (was Re: postgresql "CREATE SCHEMA" statement does not create schema)

2010-01-24 Thread Faheem Mitha
I'm belatedly following up to this earlier posting. The problem there was that I wasn't setting autocommit=True in text(). However, I was wondering what I can do if I want to directly write conn.execute("somestuff") conn.close() and have it autocommitted, rather than using text(). The execute()