Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Creating views during deployment

1 reply [Last post]
  • Login or register to post comments
Fri, 02/15/2013 - 05:28
srinivas_s
Offline
Joined: 11/16/2012
Groups: None

I am trying to create the bucket as part of my deployment and then investigate if i can create the view design documents. I have figured out that i can use couchbase-cli.exe to create the bucket

What I am trying to find out is , if there is a way to use client exe or may be the rest api to create the design document in a bucket. In CouchDb Apache i could post a document with design document contents and it would create the document with the views. Is this possible in Couchbase and can anyone point me to the right place

In our CI process we want delete and create the bucket and the views needed everytime to do some testing

Top
  • Login or register to post comments
Sun, 02/17/2013 - 03:47
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

In Couchbase you can create your design document/views using the REST API:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-desig...
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-desig...

The SDKs are exposing also this API, for example you can see how to do it from Java:
http://tugdualgrall.blogspot.fr/2012/12/couchbase-101-create-views-mapre...

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker