guan404ming commented on code in PR #48915:
URL: https://github.com/apache/airflow/pull/48915#discussion_r2036361181
##########
providers/jdbc/src/airflow/providers/jdbc/hooks/jdbc.py:
##########
@@ -220,3 +220,8 @@ def get_autocommit(self, conn: jaydebeapi.Connection) ->
bool:
with suppress_and_warn(jaydebeapi.Error, jpype.JException):
return conn.jconn.getAutoCommit()
return False
+
+ def get_uri(self) -> str:
+ """Get the connection URI for the JDBC connection."""
+ conn: Connection = self.connection
+ return conn.host
Review Comment:
Thanks! 🙏
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]