如何在DynamoDB中创建数据库 [英] How to create a database in DynamoDB

查看:124
本文介绍了如何在DynamoDB中创建数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是DynamoDB的新手。在阅读文档时,我已经看到后面的句子

I'm very new to DynamoDB. While reading the documentation, I've seen the following sentence:


在Amazon DynamoDB中,数据库是表的集合。表是项目的集合,每个项目是属性的集合。

In Amazon DynamoDB, a database is a collection of tables. A table is a collection of items and each item is a collection of attributes.

不过,我能找到的所有是用于处理表,项目和属性的方法,但没有关于如何使用表创建数据库。

Nevertheless, all I can found are methods to play with tables, items and attributes, and nothing is said about how to create a database.

所以我的问题是:是否可以在我的用户帐户中创建数据库,还是在通用共享默认数据库中创建所有表? (即我的用户帐户是唯一的数据库)?

So my questions is: is it possible to create databases within my user account, or are all the tables created within a "common shared default" database (i.e. my user account is the unique "database")?

对于我来说,围绕用户概念创建表子集对我非常有用/承租人。当然,这可以由我的应用程序逻辑来管理,但是,我的用户将需要更清晰/安全的数据隔离。

It would be very useful for me to create, somehow, subsets of tables around the concept of a "user/tenant". Of course, this is something that could be managed by my application logic, however, my users would require a more clear/secure data isolation.

无论如何,非常

推荐答案

是的,没有特定的数据库,所有表格都在您的aws帐户下。如果需要某种命名空间,使用某种形式的命名约定可能是最好的选择。

Yes, there is no specific "database", all the tables are just under your aws account. Using some form of naming convention might be the best option if you need some kind of namespacing.

这篇关于如何在DynamoDB中创建数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆