tpope / vim-dadbod

dadbod.vim: Modern database interface for Vim
https://www.vim.org/scripts/script.php?script_id=5665
3.75k stars 132 forks source link

Add support for AWS dynamodb #164

Open samuelabreu opened 8 months ago

samuelabreu commented 8 months ago

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

augustdolan commented 6 months ago

@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

samuelabreu commented 6 months ago

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

augustdolan commented 6 months ago

@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!