创建新文档并在 couchbase 数据库中插入记录

Create new documents and insert record in couchbase database

我是 couchbase 数据库的新手。我想使用 couchbase Query Workbench Developer Preview 创建一个新文档。我已经看到很多 select 语句的链接,但我没有看到用于创建表的链接。有没有什么ddl之类的东西可以创建一个document.Your帮助将不胜感激。

Couchbase 中没有桌子。您有存储桶,目前它同时用作命名空间和资源分配单元(凭证、内存配额等)。

要创建存储桶,您必须使用管理控制台或 bucket management REST API

另请记住,Couchbase 是 N1QL 参考手册中的 schemaless database, so the structure of the document is not bound to the bucket. To mutate the data, you can look at INSERT, UPDATE and UPSERT 语句。