Thanks!

I'm binding to the global metadata that is on the elixir package:

from elixir import *

metadata.bind ...



On Thu, Dec 16, 2010 at 4:19 AM, Gaetan de Menten <[email protected]>wrote:

> On Wed, Dec 15, 2010 at 14:28, fernando <[email protected]> wrote:
> > Hi,
> >
> > im trying a new way to organize my files and somehow it is making the
> > pool_recycle property to not work.
> >
> > Im defining all the entities on models.py and import * everytime i
> > need to work with them. At the end of that file i have this:
> >
> > metadata.bind = create_engine("mysql://stuff_here", echo=True,
> > pool_recycle=3600)
> >
> > but its not working. Im still getting the mysql has gone away error.
>
> I see two possibilities:
> - either you are not binding the correct metadata. Did you define a
> custom metadata object? In that case be careful to tell elixir
> entities to actually use that metadata.
> - or this is somehow a bug/feature which is not specific to Elixir and
> you will probably get your problem solved quicker by asking on
> SQLAlchemy's list directly.
>
> Hope this helps,
> --
> Gaëtan de Menten
>
> --
> You received this message because you are subscribed to the Google Groups
> "SQLElixir" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<sqlelixir%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/sqlelixir?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en.

Reply via email to