On Apr 9, 9:31 am, Jonathan Vanasco <[email protected]> wrote:
> Interesting!
>
> I do a bit of stuff like that on other parts of my project; I should
> try and push the sqlAlchemy stuff out too
>
> I'm wondering -- do you have any idea what the threadsafe implications
> of this are on db handles ?  this is the one thing i've been too
> scared to look into.

Assuming you're responding to me...

I have a simple class that wraps a scoped session, so I don't think
there are any thread issues. It's somewhat similar to using meta.py/
init_model, but using a factory because I have 3+ DB connections.

I also have a simple registry for easy access to DB connections/
sessions by key.

I can post this somewhere if anyone else might find it useful.
Improvements would be welcome too.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to