Feb-07-2019, 11:14 AM
Something is wrong with the code above. First of all, one can see a lot of raw sql queries. In the same time
SqlAlchemy is an ORM, ORM is used to avoid such queries.
In line 9 you are creating sqlite engine, but you are talking about mysql connection!?
How is
SqlAlchemy is an ORM, ORM is used to avoid such queries.
In line 9 you are creating sqlite engine, but you are talking about mysql connection!?
How is
cnx
related with engine
? (line 33)