Re: [sqlalchemy] Joined/Eager loading into a non-relationship

2016-07-01 Thread Mike Bayer
On 06/30/2016 08:24 PM, Nick Whyte wrote: Hi Mike. Thanks for your quick and detailed reply, and apologies for not getting back to you sooner. Here's an extracted code sample of the problem i'm trying to solve. I've had to redact a few things, but kept all relevant information in the extract:

Re: [sqlalchemy] Joined/Eager loading into a non-relationship

2016-06-30 Thread Nick Whyte
Hi Mike. Thanks for your quick and detailed reply, and apologies for not getting back to you sooner. Here's an extracted code sample of the problem i'm trying to solve. I've had to redact a few things, but kept all relevant information in the extract: class Occurence(Base): __tablename__ =

Re: [sqlalchemy] Joined/Eager loading into a non-relationship

2016-06-15 Thread Mike Bayer
On 06/15/2016 01:01 AM, Nick Whyte wrote: Hey, I'm working on a more complex problem with the ORM functionality of SQLA. I have a reasonably simple relationship, ie, class A(Base): id = sa.Column(sa.Integer(), primary_key=True) b_collection = sa.orm.relationship('B') class B(Base):

[sqlalchemy] Joined/Eager loading into a non-relationship

2016-06-14 Thread Nick Whyte
Hey, I'm working on a more complex problem with the ORM functionality of SQLA. I have a reasonably simple relationship, ie, class A(Base): id = sa.Column(sa.Integer(), primary_key=True) b_collection = sa.orm.relationship('B') class B(Base): id = sa.Column(sa.Integer(), primary_k