Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Use serde_dynamo for dynamodb::Event items (#140) #144

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

calavera
Copy link
Owner

Cherry picking this commit into the right branch.

(cherry picked from commit 50ce8ed)
Signed-off-by: David Calavera david.calavera@gmail.com

Use `serde_dynamo::Item` instead of `HashMap<String, AttributeValue>` to
represent the `keys`, `old_image`, and `new_image` in a
`dynamodb::Event`.

This consolidates the Rust/DynamoDB ecosystem around fewer
representations of DynamoDB items.

Note that `serde_dynamo::AttributeValue` and
`aws_lambda_events::dynamodb::attributes::AttributeValue` are slightly
different (especially with regards to the `Number` enumeration) so this
is a breaking change that would either need to go behind a feature flag
or a major version bump.

(cherry picked from commit 50ce8ed)
Signed-off-by: David Calavera <david.calavera@gmail.com>
@calavera calavera merged commit 1f12f6a into main Mar 24, 2023
@calavera calavera deleted the bring_dynamo_changes branch March 24, 2023 17:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants