[英]Creating a new bucket in Couchbase with Nodejs SDK
From what I understand a Bucket
in Couchbase is the same as a Database
in CouchDb and a node
is the same as a document
. 据我了解, Couchbase中的Bucket
与CouchDb中的Database
相同,而node
与document
相同。 Are these deductions correct? 这些扣除正确吗?
What then, is the code to create a new Bucket
using the NodeJs SDK ? 那么,使用NodeJs SDK创建new Bucket
的代码是什么呢? I cannot find the documentation for that. 我找不到相关的文档。
You are correct that a Bucket
in Couchbase is the same as a Database
in CouchDb and other database systems. 您认为Couchbase中的Bucket
与CouchDb和其他数据库系统中的Database
相同是正确的。 However a Document
in CouchDB is the same as a Document
in Couchbase . 然而一个Document
CouchDB中是一样的一个Document
中Couchbase。 A Couchbase Node
is a single server that is apart of the cluster. Couchbase Node
是群集之外的单个服务器。
The Manual covers the high level concepts of couchbase in more details. 该手册更详细地介绍了沙发床的高级概念。
The current version ( 1.2.4 ) of the NodeJS SDK does not have the ability to create a new bucket
. 当前版本( 1.2.4 )的NodeJS SDK无法创建new bucket
。 Couchbase does have RESTful API that allows the creation of buckets. Couchbase确实具有允许创建存储桶的RESTful API 。
Couchbase are working on a new 2.0.0 nodeJS that will support creating of buckets. Couchbase正在开发一个新的2.0.0 nodeJS,它将支持创建存储桶。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.