edasque / DynamoDBtoCSV

Dump DynamoDB data into a CSV file
Apache License 2.0
470 stars 152 forks source link

Add an option to filter rows #45

Open sggottlieb opened 6 years ago

sggottlieb commented 6 years ago

Would it be possible to add a command line option for a query expression to filter what rows are exported? Perhaps something like:

--key-condition-expression "Artist = :v1" --expression-attribute-values file://expression-attributes.json

as described here in the documentation: https://docs.aws.amazon.com/cli/latest/reference/dynamodb/query.html

edasque commented 6 years ago

Good idea, do you want to submit a PR?

sggottlieb commented 6 years ago

I am not a Node coder but I will ask around to see if I can convince someone to do it :)

On Mon, Jul 9, 2018 at 4:26 PM Erik Dasque notifications@github.com wrote:

Good idea, do you want to submit a PR?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/edasque/DynamoDBtoCSV/issues/45#issuecomment-403608875, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi0_MhW7mgKalh4lOPjm5esfzAW6enPks5uE7xlgaJpZM4VIFBT .

bartholomew-gander commented 6 years ago

@sggottlieb , @edasque , I can work on that this week :)

houmie commented 2 years ago

Am I correct to assume that right now this tool can only download everything, and/or download all rows based on certain primary keys. But it can't download based on an attribute condition that isn't the primary key. Correct? Thanks