You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sivankumar86 check out this section here
Your syntax is off, use %sql --section DB_CONFIG_1. Also make sure you have psycopg2 installed and there are no spaces in the .ini file.
Just tested via Jupysql and a local postgres and it works!
pmfischer
pushed a commit
to pmfischer/ipython-sql
that referenced
this issue
Sep 8, 2023
Steps to reproduce the issue.
%config SqlMagic.dsn_filename='./dsn.ini'
%sql –section [DB_CONFIG_1]
I get below error instead of connecting to db
"Environment variable $DATABASE_URL not set, and no connect string given."
The text was updated successfully, but these errors were encountered: