DynamoDB client in local with UI like PHPMyAdmin

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 02:28:55

问题


I am creating web service in zend framework which uses DynamoDB. So I installed DynamoDB in local. But it's not easy to use. Even for inserting data and update any data for testing for purpose I have to write a script.

Is there any DynamoDB client available for MAC ? In which we can insert/update/delete data from UI.

EDIT

Doubts

1) Do I have to run a SQL to see table data? I thought there would be GUI for this.

2) I am not able to use where clause in SQL. What if I want to see one or two records from all? Is there a way to use conditions in this?

3) All fields of a row is not visible and I am not able to scroll it horizontally ?


回答1:


YES! I've finally found a solution after struggling with this myself:

  1. Run your local dynamodb jar with the following command java -jar DynamoDBLocal.jar -dbPath . [this will create a file in whatever directory the Dynamo jar is located in].
  2. Download SQLite Database Browser and extract/install it.
  3. Start SQLite Database Browser
  4. Navigate to "Open Database" from the file menu

  5. Navigate to the directory from 1. Select the file [in this case, ****_us-east-1]

  6. You should then see the database contents!!

Hope this helps - it's been frustrating me no end!

!! EDIT !! - in response to original question edit.

Doubts

1) Do I have to run a SQL to see table data? I thought there would be GUI for this.

2) I am not able to use where clause in SQL. What if I want to see one or two records from all? Is there a way to use conditions in this?

3) All fields of a row is not visible and I am not able to scroll it horizontally ?

  1. Yes - you can do a simple "select" statement, for instance in my examples: "SELECT * FROM tweet_item" returns me the following screenshot:

  2. Seemingly inadvertanyl - whilst I couldn't get the direct SELECT * FROM XX WHERE XX to work, the like statement does. For instance SELECT * FROM tweet_item where tweet_item.hashKey like "%425665354447462400%" returns me the tweet with tweet_id [my hashKey] of 425665354447462400:

  3. Strange - I seem to be able to scroll quite happily [although it is Windows not Mac]. It also automatically tries to re-size the outer frame, too.




回答2:


I ran into this problem and found a relatively new solution : https://github.com/aaronshaf/dynamodb-admin

It has provision for GET/POST/PUT/DELETE.




回答3:


Although its a paid product, which is a bummer, RazorSQL now supports DynamoDB as well, and does let you change the AWS endpoint to point to a local installation.

The mac version (with a free trial) is available here: http://razorsql.com/download_mac.html




回答4:


For Eclipse users:

Amazon provides AWS Toolkit for Eclipse IDE. It can view local and cloud databases. Also if you are using different regions, it has ability to choose from different regions. You can create attributes, add keys etc.. For installation follow this link: http://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/getting-started.html




回答5:


Here is a very useful ui tool https://github.com/YoyaTeam/dynamodb-manager,It supports almost all data operations。



来源:https://stackoverflow.com/questions/20856530/dynamodb-client-in-local-with-ui-like-phpmyadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!