class SQLDatabase
in dataherald/sql_database/base.py
does not have a constructor! #127
Closed
Description
I've been trying to work with this but when I use the /api/v1/scanner
endpoint, I get the error:
"Unable to connect to db: "
After doing some detective work, it turns out that the problem comes from the fact that when from_uri
tries to create an instance of SQLDatabase
, an exception is raised because SQLDatabase
does not have a constructor.
I added a constructor and called super, but I still get the "Unable to connect..." error. (of course the error is different if you don't call super, that's how I know the initial problem was the lack of a constructor!)
Thanks
P.S.
Forgot to mention! Before calling the scanner
endpoint, I did of course use the /api/v1/database
endpoint to introduce my database and did get the true
response.
Metadata
Assignees
Labels
No labels