dbhose-airflow 0.0.2.5__py3-none-any.whl → 0.0.2.6__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.
@@ -33,7 +33,7 @@ __all__ = (
33
33
  "dbhose_dumper",
34
34
  )
35
35
  __author__ = "0xMihalich"
36
- __version__ = "0.0.2.5"
36
+ __version__ = "0.0.2.6"
37
37
 
38
38
 
39
39
  root_path = dirname(__file__)
@@ -150,6 +150,7 @@ class DBHose:
150
150
 
151
151
  if self.dumper_dest.__class__ is not NativeDumper:
152
152
  self.dumper_dest.connect.commit()
153
+ self.dumper_dest.copy_buffer.query = None
153
154
 
154
155
  self.logger.info(wrap_frame(f"Table {self.table_temp} created"))
155
156
 
@@ -164,6 +165,7 @@ class DBHose:
164
165
 
165
166
  if self.dumper_dest.__class__ is not NativeDumper:
166
167
  self.dumper_dest.connect.commit()
168
+ self.dumper_dest.copy_buffer.query = None
167
169
 
168
170
  self.logger.info(wrap_frame(f"Table {self.table_temp} dropped"))
169
171
  else:
@@ -340,6 +342,7 @@ class DBHose:
340
342
 
341
343
  if self.dumper_dest.__class__ is not NativeDumper:
342
344
  self.dumper_dest.connect.commit()
345
+ self.dumper_dest.copy_buffer.query = None
343
346
 
344
347
  elif self.move_method.have_sql:
345
348
 
@@ -375,6 +378,7 @@ class DBHose:
375
378
 
376
379
  if self.dumper_dest.__class__ is not NativeDumper:
377
380
  self.dumper_dest.connect.commit()
381
+ self.dumper_dest.copy_buffer.query = None
378
382
 
379
383
  else:
380
384
  if self.move_method is MoveMethod.rewrite:
@@ -385,6 +389,7 @@ class DBHose:
385
389
 
386
390
  if self.dumper_dest.__class__ is not NativeDumper:
387
391
  self.dumper_dest.connect.commit()
392
+ self.dumper_dest.copy_buffer.query = None
388
393
 
389
394
  self.logger.info("Clear table operation done")
390
395
 
dbhose_airflow/dumper.py CHANGED
@@ -41,8 +41,8 @@ class DBHoseObject(NamedTuple):
41
41
  "logger": log,
42
42
  }
43
43
 
44
- if self.connection is CHConnector and connection.port == 9000:
45
- port = 8123
44
+ if self.connection is CHConnector:
45
+ port = 8123 if connection.port == 9000 else connection.port
46
46
  params["timeout"] = timeout
47
47
  else:
48
48
  port = connection.port
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbhose_airflow
3
- Version: 0.0.2.5
3
+ Version: 0.0.2.6
4
4
  Summary: airflow class for exchanging data between DBMSs in native binary formats.
5
5
  Home-page: https://github.com/0xMihalich/dbhose_airflow
6
6
  Author: 0xMihalich
@@ -10,7 +10,7 @@ License-File: README.md
10
10
  License-File: CHANGELOG.md
11
11
  Requires-Dist: apache-airflow>=2.4.3
12
12
  Requires-Dist: native-dumper==0.3.3.2
13
- Requires-Dist: pgpack-dumper==0.3.3.4
13
+ Requires-Dist: pgpack-dumper==0.3.3.5
14
14
  Dynamic: author
15
15
  Dynamic: author-email
16
16
  Dynamic: description
@@ -1,9 +1,9 @@
1
1
  dbhose_airflow/LOGO,sha256=zfn071DUmSt3OzqIN-knPqoYDqUNbxO2ALfdDaEII6A,783
2
- dbhose_airflow/__init__.py,sha256=ZmnRHpvPSeUQQ5L3dV5zkzzDb90vcWUGLjtuxfSyGF4,15339
2
+ dbhose_airflow/__init__.py,sha256=7aba3xR8L__te4yl2zHLrBkmjv9lYhFyPqfgR5gKTHo,15629
3
3
  dbhose_airflow/airflow_connect.py,sha256=unsRItnK4Q_ieMiGKEsCw8Q_8wkaXdVOfaSWLNRyujM,906
4
4
  dbhose_airflow/chunk_query.py,sha256=qtR6FM0SAEHzm08o6AzMZepyzJ3J8qd_itdFY0YJQRg,275
5
5
  dbhose_airflow/dq_check.py,sha256=VoAw8qieA5LM1a7jaMPO3AQ7QXe_-ThZ8Gy868ozjHw,689
6
- dbhose_airflow/dumper.py,sha256=9BEJ36yUJ9gH5PiVirLXymSKPOgABtp7Ee8U6MtEckY,1843
6
+ dbhose_airflow/dumper.py,sha256=5UbUHvGb4ASQT78KdWwKSwD67wYi0T4jeoZ4gku-7tc,1863
7
7
  dbhose_airflow/move_method.py,sha256=EkrDy2VCbL78zfZZhwWH0gF4Ijno20FP1mRfjiABrkk,532
8
8
  dbhose_airflow/ddl/clickhouse.sql,sha256=HKIB2GhWgAGlipC4vS5EUI-YcmFnG34u5nm4bTyDkkU,2617
9
9
  dbhose_airflow/ddl/greenplum.sql,sha256=F_tCfaTz8YJ4bt2XPWa3Xln4Pe7ar8SKj-eznc3gWqs,9322
@@ -35,9 +35,9 @@ dbhose_airflow/move/greenplum/delete.sql,sha256=OJJqu3CmbipMUl_Oyw48yzRSfzchzyu4
35
35
  dbhose_airflow/move/greenplum/replace.sql,sha256=Pk9g-3SBC78bB_s8ECh_6tPDqTvL1wxKNjzrTakfrL0,1976
36
36
  dbhose_airflow/move/postgres/delete.sql,sha256=OJJqu3CmbipMUl_Oyw48yzRSfzchzyu4YAcu9gAscFc,502
37
37
  dbhose_airflow/move/postgres/replace.sql,sha256=Pk9g-3SBC78bB_s8ECh_6tPDqTvL1wxKNjzrTakfrL0,1976
38
- dbhose_airflow-0.0.2.5.dist-info/licenses/CHANGELOG.md,sha256=HzeZacp7CpMcPqjhjSsoTxZ9OuC5nwJdFa6GsJb_kAg,1229
39
- dbhose_airflow-0.0.2.5.dist-info/licenses/README.md,sha256=-TsSFVS-bdRMNM-xhtqiZUXyD6D_lb6Uiz8LKEPGlP0,8822
40
- dbhose_airflow-0.0.2.5.dist-info/METADATA,sha256=2UlRZU-Z1UUApA5cCfhrtuJzmYIdODXdpnJ2L4QzQBQ,9434
41
- dbhose_airflow-0.0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
- dbhose_airflow-0.0.2.5.dist-info/top_level.txt,sha256=VlTXT0CLGGcVhbG9QPw2_a8H5UV03QMjvZ-NrPy6_jM,15
43
- dbhose_airflow-0.0.2.5.dist-info/RECORD,,
38
+ dbhose_airflow-0.0.2.6.dist-info/licenses/CHANGELOG.md,sha256=e9vyKMhM52uH-Mh7FaZju3ROvHV-7jcXNrnVrDmJVNg,1353
39
+ dbhose_airflow-0.0.2.6.dist-info/licenses/README.md,sha256=-TsSFVS-bdRMNM-xhtqiZUXyD6D_lb6Uiz8LKEPGlP0,8822
40
+ dbhose_airflow-0.0.2.6.dist-info/METADATA,sha256=iHK2guU2Femwqug4jHnvs1Jb6FRexQp-bVGSUZVR1Hw,9434
41
+ dbhose_airflow-0.0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
42
+ dbhose_airflow-0.0.2.6.dist-info/top_level.txt,sha256=VlTXT0CLGGcVhbG9QPw2_a8H5UV03QMjvZ-NrPy6_jM,15
43
+ dbhose_airflow-0.0.2.6.dist-info/RECORD,,
@@ -1,5 +1,11 @@
1
1
  # Version History
2
2
 
3
+ ## 0.0.2.6
4
+
5
+ * Update depends pgpack-dumper==0.3.3.5
6
+ * Refactor from_airflow initialization
7
+ * Fix Destination Table diagram
8
+
3
9
  ## 0.0.2.5
4
10
 
5
11
  * Update depends pgpack-dumper==0.3.3.4