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
service/dynamodb/expression: Add expression building utility for DynamoDB #1527
Merged
Conversation
This file contains 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
* Initial commit * write Base32Encoding test cases * Implement numeric encoding instead of Base32 * Minor changes to satisfy golinter * Implement unexported tree structure * write tests * Finish basic tests * Use sprintf style aliasing * Add BuildExpression method to ConditionBuilder * Make change based on inline PR * Add name to tests, comments for clarity, more index panic coverage
* implement AND and BETWEEN * fix indentation on comments
* Implement rest of condition expression functions * unexport consts * get rid of unnecessary stringer implementations * add tests for unexported functions * Change error constants into string constants
* Implement rest of condition expression functions * unexport consts * get rid of unnecessary stringer implementations * add tests for unexported functions * initial implementation of projection * Improve comments * Improve tests * Improve tests * Improve comment grammar, get rid of iota constants and replace with string constants * Implement projection expression and improve comments * Change go build to 1.7 * make requested changes, specify that all paths are aliased * Add test case for empty ProjectionBuilder * Remove redundant line * modify BuildOperand errors to use awserr * Convert any error that users may cause into a typed error
Updates expressions, operand building, and errors returned.
* Implement Update Expression * Remove unnecessary lines * append ValueMode to SetValueBuilder modes for clarity
* Improve comments and add a doc.go * get rid of the word user * remove readme file and get rid of the word user * reword builder struct to remove ambiguity * make changes according to doc review
jasdel
changed the title
service/dynamodb/expressions: Add expression building utility for DynamoDB
service/dynamodb/expression: Add expression building utility for DynamoDB
Sep 14, 2017
Minor updates to the the DynamoDB expression package's docs and examples.
Merged
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.
Adds a new package, expression, to the SDK providing builder utilities to create DynamoDB expressions safely taking advantage of type safety.
Adds several new builders to construct specific DynamoDB Expression types. These builders can be combined together to retrieve the expression name, and value aliases, along with the formatted expression string for the given expression type.
Adds a runnable example under
example/service/dynamodb/expression