When working with sqlalchemy it would be nice if code completion could help with finding column name of a defined table and that code analyses does not mark these columns as "undefined variable from import"
# -*- coding: utf-8 -*-#
# sasession.db.Region_Ls.name - is marked as "Undefined variable from import"
reg = sasession.session.query(sasession.db.Region_Ls).order_by(sasession.db.Region_Ls.name).first()
something = reg
# no code completion on the following
I attach a zip file containing:
- createDemoDb.py, run it to create the sqlite test db
- sasession.py, sets up the sa engine, session etc
- saTestRun.py, contains the above test