kaq-quant-common 0.1.95__py3-none-any.whl → 0.1.96__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.
- kaq_quant_common/resources/kaq_ddb_stream_write_resources.py +9 -4
- {kaq_quant_common-0.1.95.dist-info → kaq_quant_common-0.1.96.dist-info}/METADATA +1 -1
- {kaq_quant_common-0.1.95.dist-info → kaq_quant_common-0.1.96.dist-info}/RECORD +4 -4
- {kaq_quant_common-0.1.95.dist-info → kaq_quant_common-0.1.96.dist-info}/WHEEL +0 -0
|
@@ -217,11 +217,16 @@ class KaqQuantDdbStreamMTWWriteRepository:
|
|
|
217
217
|
finally:
|
|
218
218
|
mutex.release()
|
|
219
219
|
|
|
220
|
-
def insert(self, df:pd.DataFrame=pd.DataFrame()):
|
|
220
|
+
def insert(self, df:pd.DataFrame=pd.DataFrame(), cols:list=[]):
|
|
221
221
|
try:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
if cols is None or len(cols) <= 0:
|
|
223
|
+
for _, row in df.iterrows():
|
|
224
|
+
_args = row.tolist()
|
|
225
|
+
self.batch_writer.insert(*_args)
|
|
226
|
+
else:
|
|
227
|
+
for _, row in df.iterrows():
|
|
228
|
+
_args = [row[i] for i in cols]
|
|
229
|
+
self.batch_writer.insert(*_args)
|
|
225
230
|
except Exception as e:
|
|
226
231
|
self.logger.error(f'KaqQuantDdbStreamMTWWriteRepository.insert is occured error: {str(e)} - {str(traceback.format_exc())}')
|
|
227
232
|
|
|
@@ -41,7 +41,7 @@ kaq_quant_common/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
41
41
|
kaq_quant_common/resources/kaq_ddb_pool_stream_read_resources.py,sha256=Y-rtGpBF3bNh2mPZ2Lze6D9JZnpkqh24OEh7okikh1w,2536
|
|
42
42
|
kaq_quant_common/resources/kaq_ddb_stream_init_resources.py,sha256=0MxxbajocTFzcRD344rfZQPKOwwuqCbyoT6dQpIox-o,3349
|
|
43
43
|
kaq_quant_common/resources/kaq_ddb_stream_read_resources.py,sha256=WShsXMoL8o-JZvrtAd7H2Cg-vrE47QbsdGgURaQwiZs,3165
|
|
44
|
-
kaq_quant_common/resources/kaq_ddb_stream_write_resources.py,sha256=
|
|
44
|
+
kaq_quant_common/resources/kaq_ddb_stream_write_resources.py,sha256=7j1EnGXPn0nPh8ir0JlRDdbOtmqPT503VVuLiDyaufU,10506
|
|
45
45
|
kaq_quant_common/resources/kaq_mysql_init_resources.py,sha256=UcqWey6LgoMqvLq1SxK33nS6-rkViGYhzUPxcrucOks,827
|
|
46
46
|
kaq_quant_common/resources/kaq_mysql_resources.py,sha256=UYBFn-o_fFaNwG6bT2E7CYdsns82EmR4ve2XgC9wFJw,13452
|
|
47
47
|
kaq_quant_common/resources/kaq_postgresql_resources.py,sha256=iG1eYkciI0xUIBdEpGqKGOLBFxvVrfbBoTuaOmhQ0v0,1762
|
|
@@ -61,6 +61,6 @@ kaq_quant_common/utils/signal_utils.py,sha256=zBSyEltNTKqkQCsrETd47kEBb3Q_OWUBUn
|
|
|
61
61
|
kaq_quant_common/utils/sqlite_utils.py,sha256=UDDFKfwL0N-jFifl40HdyOCENh2YQfW5so6hRaSJpv0,5722
|
|
62
62
|
kaq_quant_common/utils/uuid_utils.py,sha256=pm_pnXpd8n9CI66x3A20cOEUiriJyqHaKGCeLrgkBxU,71
|
|
63
63
|
kaq_quant_common/utils/yml_utils.py,sha256=gcKjb_-uuUajBGAl5QBPIZTg2wXm7qeeJvtHflj_zOE,4513
|
|
64
|
-
kaq_quant_common-0.1.
|
|
65
|
-
kaq_quant_common-0.1.
|
|
66
|
-
kaq_quant_common-0.1.
|
|
64
|
+
kaq_quant_common-0.1.96.dist-info/METADATA,sha256=JYZSqxngD1P1DK3adWlAxunHJyvPNxzYsNI_Ag7pVGw,1971
|
|
65
|
+
kaq_quant_common-0.1.96.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
66
|
+
kaq_quant_common-0.1.96.dist-info/RECORD,,
|
|
File without changes
|