miguelgrinberg / microblog-api

A modern (as of 2024) Flask API back end.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Models defined with `sa.Table` not accessable in shell context

yuxiaoy1 opened this issue · comments

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

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.