Reputation: 205
I'm new to couchbase database. I want to create a new document using couchbase Query Workbench Developer Preview. I have seen lots of links for select statement but I didn't see for creating tables. Is there any ddl kind of things to create a document.Your assistance will be highly appreciated.
Upvotes: 0
Views: 1309
Reputation: 3962
There are no tables in Couchbase. You have buckets, which at the moment serve both as namespace and resource allocation unit (credentials, memory quota etc).
To create buckets you have to use either Admin Console, or bucket management REST API.
Also keep in mind that Couchbase is 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 statements in the N1QL reference manual.
Upvotes: 2