Pythonic ORM with support for composite primary/foreign keys?

Jonathan LaCour jonathan-lists at cleverdevil.org
Tue Nov 6 09:53:00 EST 2007


jay graves wrote:

> On Nov 6, 8:29 am, Jeff <jeffo... at gmail.com> wrote:
>
>> Django has a wonderful ORM that can be used separately from the
>> framework, but it is pretty top-heavy as well.  I'm afraid that size
>> is the price you pay for abstraction.  Your business logic code
>> shrinks, but the supporting libraries grow.
>
> But the OP specifically asked for composite keys, which Django's ORM
> does not support.

SQLAlchemy is the way to go, for his use case.  If he wants a
more concise and easier to use syntax, he can install Elixir
(http://elixir.ematia.de), which makes things look a bit more familiar.

Elixir does support composite primary keys.

--
Jonathan LaCour
http://cleverdevil.org




More information about the Python-list mailing list