Skip to content

VanOvermeire/dynamodb-helper

Repository files navigation

DynamoDB Helper

Intro

This is the outer part of the DynamoDB helper. It primarily contains testing of the procedural macro, which you can find in the dynamodb-helper subdirectory.

More information about usage of the macro can be found in the readme of that directory.

The main.rs of this outer package contains an example running against the real AWS environment. A unit test and integration tests contain more examples.

Status

Github Actions Status

Development

Running the tests

The tests expect a local DynamoDB to be running on your machine:

docker run --rm -p 8000:8000 amazon/dynamodb-local

PRs

Pull requests with improvements or additional features are appreciated. They should at the very least add integration tests for the new functionality - and pass the existing ones!

TODOs

Which I'll get to if anyone needs them.

  • handle pagination for query and batch
  • support more types of lists and maps
  • allow changing names as they are saved in DynamoDB

Improvements

Nothing high priority though.

  • also support nested structs? newtypes!
  • newtypes for create_table_with_provisioned_throughput params?
  • if an IT test panics, the table is not destroyed
  • the current setup will set up a DynamoDB client for every helper struct, which is not optimal
  • support stringset, numberset, binaryset and binary

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages