Closed gensart-ai closed 1 year ago
I encountered the same problem, did you solve it?
SQLAcodegen has not been tested to work on SQLAlchemy 2.0.3. But regardless, it looks like something is passing the string Engine(mysql+pymysql://root:***@localhost:3306/flaskboard)
to create_engine()
.
There was a similar reported issue, and the user confirmed that it worked when downgrading to SQLAlchemy 1.4.
I've restricted SQLAlchemy version to < 2.0 now.
Hi,
To the point, i really don't know if this problem occurs in the SQLAlchemy itself or from your library, but it might help newcomers (maybe). Firstly, you can see that when i'm trying to achieve a result with my command :
sqlacodegen mysql+pymysql://root:@localhost/flaskboard
It always returns an error like this :
I have a
flaskboard
database in my local mysql. Not sure, i try to change theflaskboard
withnotyourdb
which is the database name that is not included in my local mysql, and it returns :Maybe this information might help :
Any help/links/forward may be appreciated.
TL;DR The detailed error :