Kevin Dangoor wrote:

> SQLObject (and Rails' ActiveRecord) may not have as powerful a model
> as SQLAlchemy, but they are super easy to use. If you're creating
> a brand new database, the Active Record pattern can work great.
> ActiveMapper does not (or at least need not) prevent you from growing
> into all of SQLAlchemy's features as you need them. If it lets you
> get to the Table objects, you can make your own Mappers later, if you
> decide you need them.

You can indeed access the tables on your objects if you use ActiveMapper
just by saying MyClass.table.  I created ActiveMapper because I wanted
SQLAlchemy to be as easy to use as Rails' ActiveRecord and SQLObject.

> The ultimate API is one that lets you start off easily and quickly and
> then work your way up in a nice, smooth progression as you need more
> capabilities. Sacrificing easy start up would discourage new users.

Yes, and this is exactly the goal of ActiveMapper.  SQLAlchemy proper
is unbelievably powerful, and highly flexible.  However, its not the
easiest thing to get rolling with. If you have an existing legacy schema
then it might be better to go with plain SQLAlchemy. On the other hand,
if you are starting from scratch, ActiveMapper is probably a pretty
good choice.

Any problems experienced right now with mixing ActiveMapper with plain
SQLAlchemy tables and mappers are bugs, and I would like them fixed.
In the same way, if people find things that they would like added to
ActiveMapper that are missing, I would like them added.  I fully admit
that ActiveMapper is definitely experimental at this point but so is
TurboGears' support for SQLAlchemy.  The only way for something to move
beyond the "experimental" stage is for people to use it, find problems
and deficiencies, and solve them.

In my opinion, plain SQLAlchemy is not an acceptable replacement for
SQLObject in TurboGears.

--
Jonathan LaCour
http://cleverdevil.org



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to