Paul Johnston wrote: > Hi, > > I'd find code to do this useful, particularly when porting an existing > app to use SA. Have you got much time to put into this? I expect a basic > version of this would be quite easy to knock up. > > Paul > > >> Just a quick question, but is there code available to autogenerate >> code for SA or Elixir from an existing (rather large) database? I >> could use SQLSoup directly, but it really helps me to be able to see >> the generated code. Also, some of the classes will benefit from some >> added methods. >> I'm still on the steep side of the learning curve for SA, so I am probably not in a position to make a general solution. However, I am proceeding to do this for my own use for postgres (using raw DB-API queries to the catalogs. I may look at using SA for some of the introspection, but one still needs to get the list of tables and I don't see a way to get that out of SA directly (at least not yet). I am not averse to hand-editing for the details, but with a couple of hundred tables, it is much more feasible to start with a basic template of the existing db than to type in stuff that is already available somewhere else. It does seem pretty straightforward, depending on the level of detail that you want to include.
Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
