skyhookadventure / dynamodb-empty

Quickly empty a DynamoDB table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for --filter options

ThomasAribart opened this issue · comments

Hi and thanks for this useful package :)

I would need on my project to clear data in DynamoDB but only if a specific field matches a certain value. It would be nice to be able to provide filters, something like this:

dynamodb-empty --table tableName --filters '{ "myFieldName": { "$eq": "myFiedValue" } }'

Thanks for the package @alan-cooney !
I agree with @ThomasAribart. It would be great to have a filter option :)

Makes sense! I don't actually use this much any more, but if you want to make a PR I'm happy to review it and push it live