forked from tywalch/electrodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for existing table support (tywalch#79)
* Improvements for keys with field names that match attribute field names. Attribute casing options on model. Documentation updates. ignoreOwnership query option. Not fully working: updates double up when index field is the same as attribute field, improved support for pre/post-fixing templates and single composites when fields match * Adding ExpressionState to have "singleOccurrence" flag which will then cause automatically overwrite values that already exist in place. This is useful because updated Keys are added to the UpdateExpression _after_ the attribute is added, which results in an overwrite and no duplication. This also is ideal for updates since DynamoDB doesnt allow for multiple updates to the same field path anyway. Additionally I have added functionality that will allow for prefixes and postfixes to attribute values. This will be useful in cases where someone is already overloading a field but maybe is parsing out their own ids (i.e. they are trying to do single table the _hard_ way). * Fixes, documentation, and implementation of prefixes/postfixes for index attribute keys.
- Loading branch information
Showing
22 changed files
with
2,207 additions
and
316 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.