[Catalyst] RE: Choosing the right ORM

Sam Vilain sam at vilain.net
Mon Nov 28 23:18:27 CET 2005


On Mon, 2005-11-28 at 18:25 +0100, Dami Laurent (PJ) wrote:
> > Ideally, ORMs should be interchangeable without requiring any app code 
> > changes, and without sacrificing any features.  What we need is a sort 
> > of meta-ORM layer with ORM-specific "driver" layers.  Gack, it never 
> > ends... ;)
> I totally disagree. The design space for ORMs is vast, as can be seen
>  from the number of different proposals on CPAN. There is definitely
>  more than one way to do it, and the way you choose has a strong
> impact on the API; so there is no hope to find a meta-API that would
>  cover all possible needs.

Agreed.  In any case, you can always pick one of these two for your
abstract model:

  1. your Perl classes, if using an orthogonal storage tool

  2. your relational database

The design patterns and abstractions needed for these are quite
different...

Sam.




More information about the Catalyst mailing list