feat(api): ReturnValues and ConditionExpression for PutItem/DeleteItem#7
Open
poyrazK wants to merge 3 commits into
Open
feat(api): ReturnValues and ConditionExpression for PutItem/DeleteItem#7poyrazK wants to merge 3 commits into
poyrazK wants to merge 3 commits into
Conversation
…/DeleteItem - PutItem: add ReturnValues ALL_NEW support (fetch item after write) - DeleteItem: add ReturnValues ALL_OLD support (get item before tombstone) - PutItem: add ConditionExpression evaluation (attribute_not_exists, etc.) - DeleteItem: add ConditionExpression evaluation before tombstone write - Add evaluateCondition() helper mirroring expression_evaluator.zig logic - BatchWriteItem: build UnprocessedKeys from failed items in conflicts list
- BatchWriteItem now collects failed item partition keys in reply_conflicts - Each failed item is serialized as JSON for UnprocessedKeys reconstruction - reply_success is false when any item fails
- Fix Zig JSON serialization: use std.json.fmt instead of manual concat to properly escape special characters in failed item JSON - BatchWriteItem UnprocessedKeys: include sortKey in reconstructed DeleteRequest Key for composite key tables - evaluateCondition: guard null children in AND/OR/NOT nodes - Add hasPath() helper for nested attribute paths (address.city) and update extractScalarValue() to traverse dot-notation paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files changed
Tests