Re: [sqlalchemy] Multiple many to one relationships to same table

2016-03-19 Thread 'Chris Norman' via sqlalchemy
ue, Mar 15, 2016 at 2:12 AM, 'Chris Norman' via sqlalchemy <sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>> wrote: Hi, On 14/03/2016 15:19, Mike Bayer wrote: On 03/14/2016 11:15 AM, 'Chris Norman' via sqlalchemy wrote: Hi all,

Re: [sqlalchemy] Multiple many to one relationships to same table

2016-03-15 Thread 'Chris Norman' via sqlalchemy
Hi, On 14/03/2016 15:19, Mike Bayer wrote: On 03/14/2016 11:15 AM, 'Chris Norman' via sqlalchemy wrote: Hi all, I've tried googling for this, and I get nothing. I have a table to store data about objects. Each object should have a location property which links back to the same table

[sqlalchemy] Multiple many to one relationships to same table

2016-03-14 Thread 'Chris Norman' via sqlalchemy
Hi all, I've tried googling for this, and I get nothing. I have a table to store data about objects. Each object should have a location property which links back to the same table. Conversely, each object should have a contents property which shows all objects which have their location set to

[sqlalchemy] sessions and threads

2015-07-24 Thread 'Chris Norman' via sqlalchemy
Hi all, Seems I can't do session.query in anything other than the main thread. I'm using SQLite, and I'm not sure if it's a problem with that or SQLAlchemy it's self. Is there any kind of work around for this? Cheers, -- You received this message because you are subscribed to the Google

Re: [sqlalchemy] Have SQLAlchemy automatically update tables

2015-07-05 Thread 'Chris Norman' via sqlalchemy
Hi, Thanks for the reply. I'm just reading over the main body of your email again, but I just wanted to reply to the location thing I was on about... I don't think I explained it all that well, so let me give you a use case. I have a player object, called Chris. That player's _location is 3,