Merge branch 'master' of https://github.com/meihkv/ipython-sql into meihkv-master

pull/214/head
Catherine Devlin 2022-06-11 10:34:55 -05:00
commit d856d915a2
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,8 @@ class Connection(object):
template = " {}"
result.append(template.format(engine_url.__repr__()))
return "\n".join(result)
@classmethod
def _close(cls, descriptor):
if isinstance(descriptor, Connection):
conn = descriptor
@ -114,7 +115,6 @@ class Connection(object):
"Could not close connection because it was not found amongst these: %s"
% str(cls.connections.keys())
)
cls.connections.pop(conn.name)
cls.connections.pop(str(conn.metadata.bind.url))
conn.session.close()