On Thu, Mar 21, 2019 at 7:01 PM Rich Shepard <rshep...@appl-ecosys.com> wrote: > > On Thu, 21 Mar 2019, Mike Bayer wrote: > > > sounds like automap: > > https://docs.sqlalchemy.org/en/latest/orm/extensions/automap.html > > Mike, > > While this does not look familiar, I'll carefully read the page again until > I really understand it. > > Now, model.py contains classes for each table in the postgres database, and > I thought there was a way to associate the classes with the tables yet > automap doesn't tickle my memory. So, more study is on the schedule.
there's also just using `__table__ = Table(..., autoload_with=engine)` as well as DeferredReflection which is kind of a more primitive automap, maybe you saw that: https://docs.sqlalchemy.org/en/latest/orm/extensions/declarative/table_config.html#using-reflection-with-declarative > > Thanks again, > > Rich > > > -- > SQLAlchemy - > The Python SQL Toolkit and Object Relational Mapper > > http://www.sqlalchemy.org/ > > To post example code, please provide an MCVE: Minimal, Complete, and > Verifiable Example. See http://stackoverflow.com/help/mcve for a full > description. > --- > 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 https://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- 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 https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.