On Friday, March 22, 2013 9:31:59 AM UTC-4, Jason wrote: > > > Hi Peter, > I think using a the declarative reflected style is a great way to > integrate an existing database into your application. It sounds like you > are doing this already, but in case you are not the reflection setup is > documented at > http://docs.sqlalchemy.org/en/rel_0_8/orm/extensions/declarative.html#using-reflection-with-declarative. > > It's very easy to have it populate all of your models with the correct > table attributes using the DeferredReflection base class. Then you just > have to make (almost empty) class definitions for each model. In theory you > could even make it so that the table name is inferred from the name of the > Model class, but in practice I found this to be annoying (I would > constantly forget how the table names compared to the class names). > > -- > Jason >
Thanks, Jason! -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.