apache-airflow-providers-mysql 5.7.2rc1__py3-none-any.whl → 5.7.3rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.7.2"
32
+ __version__ = "5.7.3"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.8.0"
@@ -28,8 +28,9 @@ def get_provider_info():
28
28
  "name": "MySQL",
29
29
  "description": "`MySQL <https://www.mysql.com/>`__\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1728485234,
31
+ "source-date-epoch": 1730013207,
32
32
  "versions": [
33
+ "5.7.3",
33
34
  "5.7.2",
34
35
  "5.7.1",
35
36
  "5.7.0",
@@ -127,12 +127,17 @@ class MySqlHook(DbApiHook):
127
127
  if conn.extra_dejson.get("cursor", False):
128
128
  import MySQLdb.cursors
129
129
 
130
- if (conn.extra_dejson["cursor"]).lower() == "sscursor":
131
- conn_config["cursorclass"] = MySQLdb.cursors.SSCursor
132
- elif (conn.extra_dejson["cursor"]).lower() == "dictcursor":
133
- conn_config["cursorclass"] = MySQLdb.cursors.DictCursor
134
- elif (conn.extra_dejson["cursor"]).lower() == "ssdictcursor":
135
- conn_config["cursorclass"] = MySQLdb.cursors.SSDictCursor
130
+ cursor_type = conn.extra_dejson.get("cursor", "").lower()
131
+ # Dictionary mapping cursor types to their respective classes
132
+ cursor_classes = {
133
+ "sscursor": MySQLdb.cursors.SSCursor,
134
+ "dictcursor": MySQLdb.cursors.DictCursor,
135
+ "ssdictcursor": MySQLdb.cursors.SSDictCursor,
136
+ }
137
+ # Set the cursor class in the connection configuration based on the cursor type
138
+ if cursor_type in cursor_classes:
139
+ conn_config["cursorclass"] = cursor_classes[cursor_type]
140
+
136
141
  if conn.extra_dejson.get("ssl", False):
137
142
  # SSL parameter for MySQL has to be a dictionary and in case
138
143
  # of extra/dejson we can get string if extra is passed via
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-mysql
3
- Version: 5.7.2rc1
3
+ Version: 5.7.3rc1
4
4
  Summary: Provider package apache-airflow-providers-mysql for Apache Airflow
5
5
  Keywords: airflow-provider,mysql,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -31,8 +31,8 @@ Requires-Dist: apache-airflow-providers-presto ; extra == "presto"
31
31
  Requires-Dist: apache-airflow-providers-trino ; extra == "trino"
32
32
  Requires-Dist: apache-airflow-providers-vertica ; extra == "vertica"
33
33
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
34
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.2/changelog.html
35
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.2
34
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.3/changelog.html
35
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.3
36
36
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
37
37
  Project-URL: Source Code, https://github.com/apache/airflow
38
38
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
@@ -89,7 +89,7 @@ Provides-Extra: vertica
89
89
 
90
90
  Package ``apache-airflow-providers-mysql``
91
91
 
92
- Release: ``5.7.2.rc1``
92
+ Release: ``5.7.3.rc1``
93
93
 
94
94
 
95
95
  `MySQL <https://www.mysql.com/>`__
@@ -102,7 +102,7 @@ This is a provider package for ``mysql`` provider. All classes for this provider
102
102
  are in ``airflow.providers.mysql`` python package.
103
103
 
104
104
  You can find package information and changelog for the provider
105
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.2/>`_.
105
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.3/>`_.
106
106
 
107
107
  Installation
108
108
  ------------
@@ -150,4 +150,4 @@ Dependent package
150
150
  ============================================================================================================== ===============
151
151
 
152
152
  The changelog for the provider package can be found in the
153
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.2/changelog.html>`_.
153
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.7.3/changelog.html>`_.
@@ -1,10 +1,10 @@
1
1
  airflow/providers/mysql/LICENSE,sha256=FFb4jd2AXnOOf7XLP04pQW6jbdhG49TxlGY6fFpCV1Y,13609
2
- airflow/providers/mysql/__init__.py,sha256=lbAn1NK6RovEakgU_uF1AmSZbHcBeGsXwB6WAIzlqHg,1492
3
- airflow/providers/mysql/get_provider_info.py,sha256=2NPcXGgQ1eH00oMYlIqAKm-pwRnl1rJPXF_AWr6zABs,4470
2
+ airflow/providers/mysql/__init__.py,sha256=g8BzTnfkHeVUZDHloKFiEbjaVZ8QVJa9m8uGgpSmcTE,1492
3
+ airflow/providers/mysql/get_provider_info.py,sha256=qhb3pNIr58P6XzmyWGqQEmWGg7pTtwyivCDiHAiXits,4491
4
4
  airflow/providers/mysql/assets/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
5
5
  airflow/providers/mysql/assets/mysql.py,sha256=ORHZmCa1AZAWwpF7GKH-8faqOKSohJvKtqRgfDnQRRc,1385
6
6
  airflow/providers/mysql/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
7
- airflow/providers/mysql/hooks/mysql.py,sha256=-HhM-oFt1oC-EuVVVr5sqAWTH2WiL1TcUYby5JZy2gc,13147
7
+ airflow/providers/mysql/hooks/mysql.py,sha256=Uyovui0UHAng5CAX4mxTzQ02oMlMJyGn8i_ugfBsA1Y,13292
8
8
  airflow/providers/mysql/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
9
9
  airflow/providers/mysql/operators/mysql.py,sha256=jEtskURwKliyx5IGoFx8cJmiALqkeJzU_rigDcLrapo,2926
10
10
  airflow/providers/mysql/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
@@ -12,7 +12,7 @@ airflow/providers/mysql/transfers/presto_to_mysql.py,sha256=gGtZIGXLpY2jP8o3xwZ5
12
12
  airflow/providers/mysql/transfers/s3_to_mysql.py,sha256=E5I7QHWqzrG3Fi9AGklwZWRCVxVDOD1tOB2xHEOZUJw,3876
13
13
  airflow/providers/mysql/transfers/trino_to_mysql.py,sha256=wiiuilxSHchJD0W2K838UHH5iUs-R5HNc0zyRDOZDRs,3251
14
14
  airflow/providers/mysql/transfers/vertica_to_mysql.py,sha256=NiIFMv0zy4M9Ynrs4InG9nqp6lyvmgDlz7_iDJWxQEI,6308
15
- apache_airflow_providers_mysql-5.7.2rc1.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
16
- apache_airflow_providers_mysql-5.7.2rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
17
- apache_airflow_providers_mysql-5.7.2rc1.dist-info/METADATA,sha256=26KWv0a0HHPyOWUkktT8JlBcHL_WOMMRHE-wPCIUwtE,7287
18
- apache_airflow_providers_mysql-5.7.2rc1.dist-info/RECORD,,
15
+ apache_airflow_providers_mysql-5.7.3rc1.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
16
+ apache_airflow_providers_mysql-5.7.3rc1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
17
+ apache_airflow_providers_mysql-5.7.3rc1.dist-info/METADATA,sha256=clYfw2Wgdx7nKA-H4i8hXne9uteNAwE2VK53wGGBFw4,7287
18
+ apache_airflow_providers_mysql-5.7.3rc1.dist-info/RECORD,,