castore
castore copied to clipboard
Allow DynamoDB index and key names to be overridden
Description đĻĢ
In some circumstances, it is necessary to use a DynamoDB table for multiple purposes. In those scenarios, it is often not possible to control the names of the Partition and Sort keys or the index names.
This includes when following "Single Table Design" method, whereby the DynamoDB table may be used for Event Sourcing (i.e. the target for castore) as well as other purposes.
Type of change đ
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
How Has This Been Tested? đ§âđŦ
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [x] Added [unit tests](L531 in singleTableAdapter.unit.test.ts)
Test Configuration: đ§
N/A
Checklist: â
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas - I don't think this is required, but happy to add if required
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream modules - N/A
Hi @ThomasAribart,
This is a great library, thank you for building it! I've already improved my understanding of event sourcing.
I raised this PR, but I wondered if you also wanted an issue to represent the feature request? let me know and I would be happy to create one, that this PR could then resolve.