有没有人能够使用 R 编程语言在亚马逊 dynamodb 中成功地进行 CRUD 记录?我发现支持的语言绑定(bind)引用:

http://aws.typepad.com/aws/2012/04/amazon-dynamodb-libraries-mappers-and-mock-implementations-galore.html

唉,没有 R。我们正在考虑将 dynamodb 用于大型数据项目,但我们的主要分析师最熟悉 R,因此我们正在探索我们的选择。

请您参考如下方法:

对于遇到此问题的任何人,现在有 Paws package ,一个适用于 R 的 AWS 开发工具包。您可以使用 install.packages("paws") 安装它.
免责声明:我是 Paws 包的维护者。
例如:

# Create a client object. 
svc <- paws::dynamodb() 
 
# This example retrieves an item from the Music table. The table has a 
# partition key and a sort key (Artist and SongTitle), so you must specify 
# both of these attributes. 
item <- svc$get_item( 
  Key = list( 
    Artist = list( 
      S = "Acme Band" 
    ), 
    SongTitle = list( 
      S = "Happy Day" 
    ) 
  ), 
  TableName = "Music" 
) 
 
# This example adds a new item to the Music table. 
svc$put_item( 
  Item = list( 
    AlbumTitle = list( 
      S = "Somewhat Famous" 
    ), 
    Artist = list( 
      S = "No One You Know" 
    ), 
    SongTitle = list( 
      S = "Call Me Today" 
    ) 
  ), 
  ReturnConsumedCapacity = "TOTAL", 
  TableName = "Music" 
) 


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!