Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistence Refactors for Nil Handling #28

Merged
merged 3 commits into from
Jul 20, 2016
Merged

Conversation

awood45
Copy link
Member

@awood45 awood45 commented Jul 20, 2016

This change covers a few different areas related to our persistence
logic:

  • All calls to Aws::DynamoDB::Client#update_item now use update
    expressions exclusively.
  • nil values will not be persisted in any case unless :persist_nil
    is set for the attribute(s) in question. There are also
    collection-specific parameters to persist nil as empty collections in
    some cases, which are now honored.
  • Update calls will now use the REMOVE expression when the value is
    nil and :persist_nil is false for the attribute.

awood45 added 3 commits July 20, 2016 10:59
This change covers a few different areas related to our persistence
logic:

* All calls to `Aws::DynamoDB::Client#update_item` now use update
  expressions exclusively.
* `nil` values will not be persisted in any case unless `:persist_nil`
  is set for the attribute(s) in question. There are also
  collection-specific parameters to persist nil as empty collections in
  some cases, which are now honored.
* Update calls will now use the `REMOVE` expression when the value is
  `nil` and `:persist_nil` is `false` for the attribute.
Need a reliable way to prove the attribute was truly deleted.
@awood45 awood45 merged commit d66d085 into master Jul 20, 2016
@mullermp mullermp deleted the persistence-refactors branch March 8, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant