Unable to reflect databases in flask sqlalchemy
flask, flask-sqlalchemy, python, python-3.x
Solution
It appears that this has been broken for awhile, even into Flask-SQLAlchemy version 1.0.
Version 1.0 was released with this commit on July 17th, 2013. The issue was only closed a few weeks later (as a result of this commit on July 31st, 2013).
So, you're not alone: it's a bug. The fix has not yet been released in a stable version.
Problem
I am attempting to use flask-sqlalchemy(flask version 0.10, flask-sqlalch version 1.0, python 3.3.3) to reflect a table in my database and am running into an error. when i use the code: ``` from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqlconnector://**appropriate connection string here **' db = SQLAlchemy(app) db.reflect(app = app) ``` get the following error: ``` file "testmodel.py", line 9, in (module) db.reflect(app = app) File "~pathToSqlAlch\flask_sqlalchemy\__init__.py", line 872, in reflect self.execute_for_all_tables(app, bind, 'reflect') File "~pathToSqlAlch\flask_sqlalchemy\__init__.py", line 848, in _execute_for_all_tables op(bind=self.get_engine(app,bind), tables=tables) reflect() got an unexpected keyword argument 'tables' ``` any idea what could cause this or what i may be doing wrong?