rawwar commented on code in PR #38831:
URL: https://github.com/apache/airflow/pull/38831#discussion_r1569714270


##########
airflow/providers/postgres/hooks/postgres.py:
##########
@@ -113,6 +114,18 @@ def schema(self):
     def schema(self, value):
         self.database = value
 
+    @property
+    def sqlalchemy_url(self) -> URL:
+        conn = self.get_connection(getattr(self, self.conn_name_attr))
+        return URL.create(
+            drivername="postgresql",

Review Comment:
   I wanted to use `SelectField` to add a dropdown where users can select from 
the available dialects. But, looks like `SelectField` is restricted: #17194. I 
think All I can do for now is to just accept it via a text field and validate 
if it is a valid `drivername` for postgresql



-- 
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]

Reply via email to