vim-dadbod icon indicating copy to clipboard operation
vim-dadbod copied to clipboard

Add support for AWS dynamodb

Open samuelabreu opened this issue 1 year ago • 4 comments

Using url params to set profile and endpoint url if needed.

samuelabreu avatar Mar 31 '24 21:03 samuelabreu

@samuelabreu do you have success with all the possible cli commands? If I run a query command in my terminal, I receive a successful response. However, when I run the equivalent command with dadbod I get:

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

Unknown options: :pk", {"S":, "myPrimaryKey"}}', =

aws cli command: aws dynamodb --profile myProfile query --key-condition-expression "PK = :pk" --expression-attribute-values '{":pk": {"S": "myQueryKey"}}' --table-name BaseStackdevelopment-PsSingleTable

DB command: query --key-condition-expression "PK = :pk" --expression-attribute-values '{":pk": {"S": "myQueryKey"}}' --table-name BaseStackdevelopment-PsSingleTable

For context, dadbod is able to successfully run a list-tables command

augustdolan avatar May 24 '24 02:05 augustdolan

@augustdolan , i only used for basic commands, but i just push a commit and test it with your query.

samuelabreu avatar May 25 '24 20:05 samuelabreu

@augustdolan , i only used for basic commands, but i just push a commit and test it with your query.

Success! I am now able to run full commands that use quotes! Thanks so much for pushing up the new commit!

augustdolan avatar May 26 '24 22:05 augustdolan