[sqlalchemy] Re: Problem with using global metadata/connection in a threaded context

2007-05-18 Thread Sébastien LELONG
Currently, I create a single instance of my persistence layer API, which makes a call to global_connect(), and optionally to default_metadata.create_all() (for tests). I then pass this instance to all the threads that need to talk to my database. global_connect() uses a DynamicMetadata,

[sqlalchemy] Re: Problem with using global metadata/connection in a threaded context

2007-05-17 Thread Andreas Jung
--On 17. Mai 2007 00:28:35 +0200 David Anderson [EMAIL PROTECTED] wrote: I am guessing that somewhere in the mix the engine information is severed from the metadata when jumping to the other thread, but I have no idea how to fix this problem. Can anyone give me pointers on how to get my