We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78a94fb commit 8e3d39bCopy full SHA for 8e3d39b
src/datajoint/connection.py
@@ -234,9 +234,12 @@ def __eq__(self, other):
234
235
def __repr__(self):
236
connected = "connected" if self.is_connected else "disconnected"
237
+ user = self.conn_info["user"]
238
+ host = self.conn_info["host"]
239
+ port = self.conn_info["port"]
240
db = self.conn_info.get("database_name")
241
db_str = f"/{db}" if db else ""
- return f"DataJoint connection ({connected}) {self.conn_info['user']}@{self.conn_info['host']}:{self.conn_info['port']}{db_str}"
242
+ return f"DataJoint connection ({connected}) {user}@{host}:{port}{db_str}"
243
244
def _build_connect_kwargs(self, use_tls=None):
245
"""Build kwargs dict for adapter.connect()."""
0 commit comments