Models defined with `sa.Table` not accessable in shell context
yuxiaoy1 opened this issue · 1 comments
yuxiaoy1 commented
The shell context script only filters the models defined with Model
, but not sa.Table
, can we modify to access them as well?
https://github.com/miguelgrinberg/microblog-api/blob/main/api/app.py#L42-L50
miguelgrinberg commented
This project uses the ORM, so plain tables are not an important part of it and it is not really necessary that there is access to them in the shell. The tables in this project exist to support many-to-many relationships only, they are not intended to be accessed.