On Aug 31, 2011, at 5:01 PM, Gaurav Gupta wrote:

> I have a situation where I have 2 databases say db1 and db2. In db2, I have 
> tables that have relationships (ForeignKey, ManyToOne) with few tables in 
> db1. How do I express this in Elixir/SQLAlchemy.

I doubt that. No database I'm aware of can have that. Of course you can refer 
to IDs of the other DB, but there is no real Foreign-key or many-to-one there.

What you can do is of course you can use a simple property that queries and 
delivers an object based on the stored ID in one DB from the other.

Diez

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

Reply via email to