On Dec 10, 2007 3:19 PM, alex bodnaru <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> hi all,
>
> could i establish the one side of an onetomany relationship on a regular
> unique index (but not a primarykey)?

Not at the moment (or at least not cleanly), but I should make it
possible as SQLAlchemy allows this. Could you add one (or two)
ticket(s) for this in the trac?

I see two (complementary) options to do that:
* provide a "target_columns" arguments, which would list the name of
the column(s) you want to target. That would probably be enough for
you.
* detect that a join argument (primary_join and possibily
secondary_join) is present and don't create any column in that case.

>
> best regards,
>
> alex
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQCVAwUBR11LA9pwN1sq38njAQIDVwP+NP8cvunyq113RrSIP2wsfPxQWZ3W/aG+
> B2mUAW6FnoGut0UN2LX8A6DBKvv+1qkF5Z3mBoHC6MB2z1nohfJv2/0NY6Y87exA
> ECThYy2Dt3OKyNgRSlu2USxqzlTxSQ5t1VcQVaht11B1FT+pDYI7sUzfIQhH3CjM
> TdInggSR4rQ=
> =7u0h
> -----END PGP SIGNATURE-----
>
> >
>



-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
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