DynamoDBtoCSV icon indicating copy to clipboard operation
DynamoDBtoCSV copied to clipboard

Add an option to filter rows

Open sggottlieb opened this issue 6 years ago • 4 comments

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

sggottlieb avatar Jul 09 '18 17:07 sggottlieb

Good idea, do you want to submit a PR?

edasque avatar Jul 09 '18 20:07 edasque

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 [email protected] 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 .

sggottlieb avatar Jul 09 '18 21:07 sggottlieb

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

bartholomew-gander avatar Jul 11 '18 10:07 bartholomew-gander

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

houmie avatar May 23 '22 19:05 houmie