I've been hitting the same wall, and decided that autoload was the
wrong way to go. Once you want to generate documentation for a
database from the models, you typically do not want allow frequent
changes of the DB structure anymore. So at this point, I just wrote a
script to create basic model classes via inspecting the db. These
basic model classes get documented, enhanced with relationships, ...
afterwards.
So I'd say if your use case is not "being able to use the same
application code with changing db structure", but only "there's too
many tables to handcode the model classes", it's better to jump-start
the model classes via inspection.
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/sqlalchemy/-/TeQSqXqJTz0J.
> To post to this group, send email to
sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sqlalchemy+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/sqlalchemy?hl=en.