uranusjr commented on code in PR #38715:
URL: https://github.com/apache/airflow/pull/38715#discussion_r1560783163
##########
airflow/providers/common/sql/hooks/sql.py:
##########
@@ -147,14 +147,22 @@ class DbApiHook(BaseHook):
default_conn_name = "default_conn_id"
# Override if this db supports autocommit.
supports_autocommit = False
+ # Override if this db supports executemany.
+ supports_executemany = False
# Override with the object that exposes the connect method
connector: ConnectorProtocol | None = None
# Override with db-specific query to check connection
_test_connection_sql = "select 1"
# Default SQL placeholder
_placeholder: str = "%s"
- def __init__(self, *args, schema: str | None = None, log_sql: bool = True,
**kwargs):
+ def __init__(
+ self,
+ *args,
+ schema: str | None = None,
+ log_sql: bool = True,
+ **kwargs,
+ ):
Review Comment:
```suggestion
def __init__(self, *args, schema: str | None = None, log_sql: bool =
True, **kwargs):
```
--
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]