quite frankly, i'm handling them using deferreds, in a similar way you can find in sqlalchemy-future: https://github.com/lunant/SQLAlchemy-Future

with this -- and using scoped sessions based on the callbacks, i can close the session quite nice.

the code is very, very ugly for now, but i plan to share it somewhere in the near future :)

i did use some ideas behind txpostgres impl, too.


best regards,
richard.


On 12/11/2013 02:52 PM, Jonathan Vanasco wrote:
richard - how are you handle the scoping and management of sessions ?

i'm wanting (badly) to convert some twisted code that is using raw sql through their db api onto the sqlalchemy model for my core app.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to