You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/17 09:20:18 UTC

[GitHub] [airflow] ashb commented on a change in pull request #15581: Add optional result handler to database hooks

ashb commented on a change in pull request #15581:
URL: https://github.com/apache/airflow/pull/15581#discussion_r633368587



##########
File path: airflow/hooks/dbapi.py
##########
@@ -166,30 +166,51 @@ def run(self, sql, autocommit=False, parameters=None):
         :type autocommit: bool
         :param parameters: The parameters to render the SQL query with.
         :type parameters: dict or iterable
+        :param handler: The result handler which is called after each statement.
+        :type handler: Callable which gets a cursor object.

Review comment:
       ```suggestion
           :type handler: callable
   ```
   
   Type should be a bare type, not a description




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org