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

查看:11
本文介绍了如何在 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.

无论如何,如前所述,对 DynamoDB 来说非常新,很可能我错过了很多东西.

Anyway, as said, very new to DynamoDB and most probably I'm missing a lot of things.

推荐答案

是的,没有特定的数据库",所有的表都在您的 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天全站免登陆