SQLAlchemy & Postgresql

Rich Shepard rshepard at appl-ecosys.com
Thu May 28 15:30:14 EDT 2020


On Thu, 28 May 2020, Buddy Peacock wrote:

> I'm not sure what you mean by models?  Am I missing something in my
> environment perhaps?

The model (or models if you prefer) define the sqlalchemy classes that
reflect the structure and content of the postgrep table(s).

I put all classes (for all database tables) in a single module, model.py.

This assumes, of course, that you have defined the postgres database schema.

Regards,

Rich


More information about the Python-list mailing list