Yannick Gingras wrote:
Greetings Alchemists,
this is more of a general data modeling question but maybe Alchemy has
a neat trick to resolve this issue.
It happens quite often that I want to use instances of a class as
attributes of unrelated objects. One example is Addresses. Both
On October 9, 2009, Conor wrote:
I think your best solution is similar to your AddressMap idea above, but
just make it part of Address instead with check and unique constraints
on your FK columns: [...]
The check constraint above is a bit overkill for just 2 FK columns (you
could just use
-Original Message-
From: sqlalchemy@googlegroups.com
[mailto:sqlalch...@googlegroups.com] On Behalf Of Yannick Gingras
Sent: 09 October 2009 14:43
To: sqlalchemy@googlegroups.com
Subject: [sqlalchemy] Duck-typing style of relations
Greetings Alchemists,
this is more of a