pgcli
pgcli copied to clipboard
pgcli.magic `conn.session.engine.url` raises AttributeError after breaking change upstream in ipython-sql
This reference to session in pgcli.magic conn.session.engine.url raises an AttributeError for the current HEAD version of ipython-sql (after https://github.com/catherinedevlin/ipython-sql/commit/9fbf83baff3739757b494c9776d4dfeac275d5d2). It can be changed to just conn.url.
However, it's probably worth moving off ipython-sql to https://github.com/ploomber/jupysql which is a maintained fork of it.
Refs:
- https://github.com/catherinedevlin/ipython-sql/commit/9fbf83baff3739757b494c9776d4dfeac275d5d2
- https://github.com/dbcli/pgcli/blob/89979a93538d81b43c5a79c95d3c268dd32cf1d2/pgcli/magic.py#L43