Trying to catch up with my backlog of emails to answer on the list... ;-) On Mon, Mar 17, 2008 at 5:41 PM, Isaac Csandl <[EMAIL PROTECTED]> wrote:
> Just wondering what people think about the new declarative mapper in > SA 0.4.4. Well, IMO, in its initial version it was still a bit rough on the edges (not very nice to use). But, in trunk (the next SA version) it'll provide a great alternative to the deprecated ActiveMapper extension, and to Elixir to some extent. There are two main differences between Elixir and the declarative extension: First is the ability that Elixir has to create columns automatically corresponding to some constructs. The disadvantage of this is that it makes our code more complex because we can't just create them on-the-fly when each entity is defined (as we did in the first versions of Elixir). On the other hand this allows us to free the use from some repetitive tasks, like defining always the same columns for their primary key, relationships, for inheritance, for polymorphic inheritance, etc... In short, we can implement some known patterns for the user. In addition to the "built-in" patterns that we provide, the user can also easily factor out patterns he often use (as for example those in our growing list of extensions). The second difference is that we try to provide a consistent syntax for defining entities, so that the entity definition is nice to look at and readable. The declarative mapper rather opted to reuse the normal SQLAlchemy constructs, which makes it easier to learn for someone already knowing SQLAlchemy, but (IMO) slightly akward-looking (ex: some names start with a capital letter, some don't, ...). This one is really a matter of taste. PS: - I tried to make this comparison as impartial as I can, but I'm of course biased. - we might want to make this a FAQ. -- 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 -~----------~----~----~----~------~----~------~--~---
