from database.models import TableModel error
Closed this issue · 1 comments
anisengupta commented
havok2063 commented
@anisengupta Are you trying to copy and paste the examples from the documentation? Those are just toy examples and don't represent real code. Essentially wherever you see from database import session
you should replace with your import of an instantiated SQLAlchemy database Session, and wherever you see from database.models import TableModel
you should replace with your imports of your defined SQLAlchemy Models you want to use in the parser.
But you make a good point that perhaps I should update the documentation to clarify that it's a toy example, meant to be replaced by real code. I'll create a separate issue for that.