On 9/19/06, Tjaart de Beer <[EMAIL PROTECTED]> wrote: > I have scoured the web in search of an answer. Is there a way to create > your model.py file by reverse engineering an existing database? If > possible the code must be usable by SQLAlchemy.
SQLAlchemy can introspect a database (autoload=True in the Table class) and generate the table accessors/modifiers. It does not, however dump the schema out into a file. If you'd like to do that, you'll have to write a script that checks the column type and prints out an appropriate line. RuleDispatch would be pretty nice for this but a case statement would also work. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

