On Thu, 29 Jul 2010 11:36:43 +0100, King Simon-NFHD78 <[email protected]> 
wrote:

> You can tell meta.create_all() to use the same underlying DB connection
> as the session by using the session.connection() method with the 'bind'
> parameter to create_all().
>
> Ie.
>
>   connection = session.connection()
>   meta.create_all(bind=connection)
>
> See the docs at
> http://www.sqlalchemy.org/docs/session.html#using-sql-expressions-with-s
> essions and
> http://www.sqlalchemy.org/docs/reference/sqlalchemy/schema.html#sqlalche
> my.schema.MetaData.create_all
>
> Hope that helps,

Hi Simon,

Thanks. Do you understand why this blocking takes place? I assume by
default create_all tries to make a different connection, and fails for
some reason?

                                                     Regards, Faheem.

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

Reply via email to