This commit is contained in:
2025-08-15 00:06:05 -03:00
parent 6e0e5f788d
commit a53f37393a
27 changed files with 617 additions and 338 deletions

View File

@@ -38,10 +38,10 @@ class Op:
for op, doc in ops.items():
match op:
case DynamoDBRecordEventName.INSERT:
case (
DynamoDBRecordEventName.INSERT | DynamoDBRecordEventName.MODIFY
):
index.add_documents(doc, serializer=JSONEncoder)
case DynamoDBRecordEventName.MODIFY:
index.update_documents(doc, serializer=JSONEncoder)
case DynamoDBRecordEventName.REMOVE:
index.delete_documents(doc)