greetings, i got a few basic mysql queries for which i need a dictionary cursor and i was wondering if there is way to specify that as part of the session.execute() statemtent
mysql_url = 'mysql://root:@localhost/mydb' engine = create_engine(mysql_url, pool_recycle=3600, pool_size=20) Session = scoped_session(sessionmaker(bind=engine)) ... session = Session() result = session.execute('select * from ebm_table').fetchone() returns a tuple and i'm currently manually casting it to a dict (row = dict(result)). thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---