Feb-14-2020, 02:27 AM
Quote: I see you can't simply, have SQL code translated into Python Code, using SQLAlchemy?
You need to define a model (which is a class the defines the table columns, indexes, etc.), quite simple, see tutorial
then to access code, create an SqlAlchemy session and run the query.
The model should also include common database methods that you would create, for example queries which you use over and over
as you class grows, your database can become more and more of a black box.
the tutorial will take you less time than you've already spent on this thread.