This is a helpful start. Thank you. However, if we decide to use TurboGears, we would need to use SQLAlchemy because we have an existing database that has multiple columns that represent primary keys in many of our tables. I was hoping that there would be a way to generate the python model code from an existing MySQL database, and then be able to update that model code automatically or through some program whenever changes are made to the database through something like PHPMyAdmin. It sounds like it would be more difficult to write code in TurboGears if the database is not represented in the python module.
Tina On Jul 17, 1:40 pm, Jeff Miller <[EMAIL PROTECTED]> wrote: > Tina Matter wrote: > > I have a few questions regarding existing MySQL databases. > > If you have an already existing MySQL database, does TurboGears > > automatically create a module with the object classes for you? > > Or would you basically have to re-create everything in TurboGears? > > Also, if you decide later to change or delete a field in a table, would > > that change automatically be reflected in all the code automatically > > (like WebObjects does)? Or would you have to find all the code that > > references that table and make the adjustments yourself? > > What if you make changes through PHPMyAdmin? Does TurboGears recognize > > that something has changed? > > > Thank you. > > Tina Matter > > Tina, > > If your using SQLObject, then check this > page:http://docs.turbogears.org/1.0/GettingStarted/UseDatabase under Define > Data Models. > > I haven't learned SQLAlchemy yet (next thing to do). > > HTH, > > Jeff --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

