Reputation: 4228
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
.
Are these deductions correct?
What then, is the code to create a new Bucket
using the NodeJs SDK?
I cannot find the documentation for that.
Upvotes: 2
Views: 947
Reputation: 1195
You are correct that a Bucket
in Couchbase is the same as a Database
in CouchDb and other database systems. However a Document
in CouchDB is the same as a Document
in Couchbase. A Couchbase Node
is a single server that is apart of the cluster.
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
. Couchbase does have RESTful API that allows the creation of buckets.
Couchbase are working on a new 2.0.0 nodeJS that will support creating of buckets.
Upvotes: 5