aws / aws-sdk-ruby-record

Official repository for the aws-record gem, an abstraction for Amazon DynamoDB.
Apache License 2.0
318 stars 41 forks source link

Support custom update expressions when update has no other attribute changes #138

Closed lsglick closed 11 months ago

lsglick commented 11 months ago

Issue #, if available: Resolves aws/aws-sdk-ruby-record#137

Description of changes:

This is a minimal implementation to allow update expressions to be passed through directly to the api call. To avoid conflicts, an error is raised if an update expression would have been generated by the sdk to update dirty attributes.

Also: Adds support for pass-through API options to the class-level .update item operation.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

lsglick commented 11 months ago

I think you will need a changelog for this.

Would you like to see more than the changes already made in CHANGELOG.md?

Are there any other improvements you can see while we're at it?

There's a few subtle things here-and-there as we're using the sdk, though most we've been able to workaround or adjust our approach!

mullermp commented 11 months ago

Would you like to see more than the changes already made in CHANGELOG.md?

Sorry... this is what I get for reviewing from mobile. :D