apache-airflow-providers-mysql 5.5.0__py3-none-any.whl → 5.5.1__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.
@@ -27,7 +27,7 @@ import packaging.version
27
27
 
28
28
  __all__ = ["__version__"]
29
29
 
30
- __version__ = "5.5.0"
30
+ __version__ = "5.5.1"
31
31
 
32
32
  try:
33
33
  from airflow import __version__ as airflow_version
@@ -27,9 +27,10 @@ def get_provider_info():
27
27
  "package-name": "apache-airflow-providers-mysql",
28
28
  "name": "MySQL",
29
29
  "description": "`MySQL <https://www.mysql.com/>`__\n",
30
- "suspended": False,
31
- "source-date-epoch": 1701983397,
30
+ "state": "ready",
31
+ "source-date-epoch": 1704610683,
32
32
  "versions": [
33
+ "5.5.1",
33
34
  "5.5.0",
34
35
  "5.4.0",
35
36
  "5.3.1",
@@ -214,10 +214,8 @@ class MySqlHook(DbApiHook):
214
214
  conn = self.get_conn()
215
215
  cur = conn.cursor()
216
216
  cur.execute(
217
- f"""
218
- LOAD DATA LOCAL INFILE '{tmp_file}'
219
- INTO TABLE {table}
220
- """
217
+ f"LOAD DATA LOCAL INFILE %s INTO TABLE {table}",
218
+ (tmp_file,),
221
219
  )
222
220
  conn.commit()
223
221
  conn.close() # type: ignore[misc]
@@ -227,10 +225,8 @@ class MySqlHook(DbApiHook):
227
225
  conn = self.get_conn()
228
226
  cur = conn.cursor()
229
227
  cur.execute(
230
- f"""
231
- SELECT * INTO OUTFILE '{tmp_file}'
232
- FROM {table}
233
- """
228
+ f"SELECT * INTO OUTFILE %s FROM {table}",
229
+ (tmp_file,),
234
230
  )
235
231
  conn.commit()
236
232
  conn.close() # type: ignore[misc]
@@ -294,12 +290,8 @@ class MySqlHook(DbApiHook):
294
290
  cursor = conn.cursor()
295
291
 
296
292
  cursor.execute(
297
- f"""
298
- LOAD DATA LOCAL INFILE '{tmp_file}'
299
- {duplicate_key_handling}
300
- INTO TABLE {table}
301
- {extra_options}
302
- """
293
+ f"LOAD DATA LOCAL INFILE %s %s INTO TABLE {table} %s",
294
+ (tmp_file, duplicate_key_handling, extra_options),
303
295
  )
304
296
 
305
297
  cursor.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-mysql
3
- Version: 5.5.0
3
+ Version: 5.5.1
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.5.0/changelog.html
35
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.5.0
34
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.5.1/changelog.html
35
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.5.1
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.5.0``
92
+ Release: ``5.5.1``
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.5.0/>`_.
105
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.5.1/>`_.
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.5.0/changelog.html>`_.
153
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-mysql/5.5.1/changelog.html>`_.
@@ -1,8 +1,8 @@
1
1
  airflow/providers/mysql/LICENSE,sha256=ywUBpKZc7Jb96rVt5I3IDbg7dIJAbUSHkuoDcF3jbH4,13569
2
- airflow/providers/mysql/__init__.py,sha256=cP2kyOd7fTrJUlFOQ_-dphFwOWtXgmMAzEpwDdwV-Mw,1580
3
- airflow/providers/mysql/get_provider_info.py,sha256=301CNlcFhOikR8u7PTwDFllp20qg-J7dTVJNtPI8cfo,3948
2
+ airflow/providers/mysql/__init__.py,sha256=FFFeL5XSPizS3iyW0t42Kq9rmP15JPE-gtiu8p-xUp0,1580
3
+ airflow/providers/mysql/get_provider_info.py,sha256=rzBWaG_fJ71Qcg66-14eJlPFrnf5VmEdyQIjKqWY-NE,3967
4
4
  airflow/providers/mysql/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
5
- airflow/providers/mysql/hooks/mysql.py,sha256=IVGig7oScfHnn-BNiLdCvXJ52U3oCZHXfkESOzlMp30,13316
5
+ airflow/providers/mysql/hooks/mysql.py,sha256=t2EkCHr_Prv8yKPF1XKOFnbpsTKMkMSkqlHrZkRtYxw,13217
6
6
  airflow/providers/mysql/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
7
7
  airflow/providers/mysql/operators/mysql.py,sha256=Vuct5Aa5mf51HH5r7IFC42OR3gtlLY5gNcDBu_gbAFI,2987
8
8
  airflow/providers/mysql/transfers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
@@ -10,7 +10,7 @@ airflow/providers/mysql/transfers/presto_to_mysql.py,sha256=gGtZIGXLpY2jP8o3xwZ5
10
10
  airflow/providers/mysql/transfers/s3_to_mysql.py,sha256=j2t2pIZkWnPbNiBbhpxTfKXIUu7TnTe66kT3K3OotRw,3870
11
11
  airflow/providers/mysql/transfers/trino_to_mysql.py,sha256=wiiuilxSHchJD0W2K838UHH5iUs-R5HNc0zyRDOZDRs,3251
12
12
  airflow/providers/mysql/transfers/vertica_to_mysql.py,sha256=NiIFMv0zy4M9Ynrs4InG9nqp6lyvmgDlz7_iDJWxQEI,6308
13
- apache_airflow_providers_mysql-5.5.0.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
14
- apache_airflow_providers_mysql-5.5.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
15
- apache_airflow_providers_mysql-5.5.0.dist-info/METADATA,sha256=iTVwusJWvcicdEufJ8eWKWorMV3bdzfNHZshXTk3tNE,7270
16
- apache_airflow_providers_mysql-5.5.0.dist-info/RECORD,,
13
+ apache_airflow_providers_mysql-5.5.1.dist-info/entry_points.txt,sha256=kIbWluJZ1LX9jo9pLkqbnu6DUgYpoGKXzmSvjT5czKM,101
14
+ apache_airflow_providers_mysql-5.5.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
15
+ apache_airflow_providers_mysql-5.5.1.dist-info/METADATA,sha256=WRS2sS9aLDkRtcCat8E7Hznnx0mXhNm-mjmM0Hk8O24,7270
16
+ apache_airflow_providers_mysql-5.5.1.dist-info/RECORD,,