statikk 0.1.11__py3-none-any.whl → 0.1.12__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.
- statikk/engine.py +7 -7
- {statikk-0.1.11.dist-info → statikk-0.1.12.dist-info}/METADATA +3 -2
- {statikk-0.1.11.dist-info → statikk-0.1.12.dist-info}/RECORD +6 -6
- {statikk-0.1.11.dist-info → statikk-0.1.12.dist-info}/WHEEL +1 -1
- {statikk-0.1.11.dist-info → statikk-0.1.12.dist-info/licenses}/LICENSE.txt +0 -0
- {statikk-0.1.11.dist-info → statikk-0.1.12.dist-info}/top_level.txt +0 -0
statikk/engine.py
CHANGED
@@ -609,6 +609,13 @@ class Table:
|
|
609
609
|
|
610
610
|
dynamodb_table = self._get_dynamodb_table()
|
611
611
|
|
612
|
+
if len(delete_items) > 0:
|
613
|
+
with dynamodb_table.batch_writer() as batch:
|
614
|
+
for item in delete_items:
|
615
|
+
enriched_item = self._prepare_model_data(item, self.indexes)
|
616
|
+
data = self._serialize_item(enriched_item)
|
617
|
+
batch.delete_item(Key=data)
|
618
|
+
|
612
619
|
if len(put_items) > 0:
|
613
620
|
with dynamodb_table.batch_writer() as batch:
|
614
621
|
for item in put_items:
|
@@ -620,13 +627,6 @@ class Table:
|
|
620
627
|
data = self._serialize_item(enriched_item)
|
621
628
|
batch.put_item(Item=data)
|
622
629
|
|
623
|
-
if len(delete_items) > 0:
|
624
|
-
with dynamodb_table.batch_writer() as batch:
|
625
|
-
for item in delete_items:
|
626
|
-
enriched_item = self._prepare_model_data(item, self.indexes)
|
627
|
-
data = self._serialize_item(enriched_item)
|
628
|
-
batch.delete_item(Key=data)
|
629
|
-
|
630
630
|
def inspect_optional_field(self, model_class, field_name):
|
631
631
|
field_type = model_class.model_fields[field_name].annotation
|
632
632
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: statikk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.12
|
4
4
|
Summary: statikk is a single table application (STA) library for DynamoDb.
|
5
5
|
Home-page: https://github.com/terinia/statikk
|
6
6
|
Author: Balint Biro
|
@@ -22,6 +22,7 @@ Requires-Dist: setuptools; extra == "testing"
|
|
22
22
|
Requires-Dist: pytest; extra == "testing"
|
23
23
|
Requires-Dist: pytest-cov; extra == "testing"
|
24
24
|
Requires-Dist: moto[dynamodb]==4.2.14; extra == "testing"
|
25
|
+
Dynamic: license-file
|
25
26
|
|
26
27
|
.. image:: ./assets/logo.png
|
27
28
|
:alt: Statikk
|
@@ -1,12 +1,12 @@
|
|
1
1
|
statikk/__init__.py,sha256=pH5i4Fj1tbXLqLtTVIdoojiplZssQn0nnud8-HXodRE,577
|
2
2
|
statikk/conditions.py,sha256=63FYMR-UUaE-ZJEb_8CU721CQTwhajq39-BbokmKeMA,2166
|
3
|
-
statikk/engine.py,sha256=
|
3
|
+
statikk/engine.py,sha256=JusQPQdn-ubQLXrspYcbq6erwS0M8Su3a5RQ6vF9GY8,33346
|
4
4
|
statikk/expressions.py,sha256=boAeGxZj2cDsXxoiX3IIEzfX9voSMQngi4-rE_jYeuE,12233
|
5
5
|
statikk/fields.py,sha256=LkMP5NnX7WS0HSLxI3Q-dMOrfaJ0SD7SayZxJU5Acgg,86
|
6
6
|
statikk/models.py,sha256=REipaPzo5dIq4InXbWuP48aDZdImO5fXGkALenbf7Ng,16257
|
7
7
|
statikk/typing.py,sha256=qfpegORcdODuILK3gvuD4SdcZA1a7Myn0yvscOLPHOM,68
|
8
|
-
statikk-0.1.
|
9
|
-
statikk-0.1.
|
10
|
-
statikk-0.1.
|
11
|
-
statikk-0.1.
|
12
|
-
statikk-0.1.
|
8
|
+
statikk-0.1.12.dist-info/licenses/LICENSE.txt,sha256=uSH_2Hpb2Bigy5_HhBliN2fZbBU64G3ERM5zzhKPUEE,1078
|
9
|
+
statikk-0.1.12.dist-info/METADATA,sha256=JbwrEpAyalVVKYRLzI8WFZu2FgCEErk7iQwcBAMHhAo,3183
|
10
|
+
statikk-0.1.12.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
11
|
+
statikk-0.1.12.dist-info/top_level.txt,sha256=etKmBbjzIlLpSefXoiOfhWGEgvqUEALaFwCjFDBD9YI,8
|
12
|
+
statikk-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|