On 8/23/06, lazz <[EMAIL PROTECTED]> wrote: > > I use SA for my app with ActiveMapper before. And I have several > tables with the same column in my app. > But while I want making the app change querying table of database with > user's select. > ActiveMapper seems can't do that.
ActiveMapper is fine for doing basic stuff, but it doesn't allow you to access all the capabilities of sqlalchemy. I've tried on a couple projects, but I always seem to run into a case that ActiveMapper doesn't support, which means I need to redo the model in standard sqlalchemy (as relations seem to behave screwily when dealing with half ActiveMapper and half not). I now just skip it and do straight SQLAlchemy, the extra typing is worth it. > chosed_table = Table(_user_chose_, metadata, autoload=True) It's not that inefficient, the difference is a single extra runtime query per table to query the table structure, you don't pay a penalty on every access. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

