Hey team -
I was wondering - is it possible to limit the depth of objects by which SA
will populate members?
Say I have a Person who is on a Team that plays a Game
class Person(Base):
# .....
team = relationship("Team", uselist=False)
class Team(Base):
# .....
game = relationship("Game", uselist=False)
class Game(Base):
# ....
If I get a person - I don't want it to go all the way down and grab the
game object. Just the team one.
Is there a setting that makes that easy?
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sqlalchemy/CAHmCLHpp36J%3DNfaraJOXbWm34903hPMuyury%3DZF5mJTPVi%2BJJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.