Hello.

Out of curiosity. Do you want this during (unit) testing or in the application
logic itself?

Ladislav Lenart


On 11.6.2014 20:17, Jonathan Vanasco wrote:
> I can't find this in the API or by using `inspect` on an object.
> 
> I'm trying to find out how to tell if a particular relationship was loaded or 
> not.
> 
> ie, I loaded Foo from the ORM, and want to see if foo.bar was loaded.
> 
> I thought it might have been the `.attrs[column].state` , which is an
> InstanceState, but it doesn't appear to be so.
> 
> 
> -- 
> 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 sqlalchemy+unsubscr...@googlegroups.com
> <mailto:sqlalchemy+unsubscr...@googlegroups.com>.
> To post to this group, send email to sqlalchemy@googlegroups.com
> <mailto:sqlalchemy@googlegroups.com>.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.


-- 
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 sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to