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

PHP and views

2 replies [Last post]
  • Login or register to post comments
Tue, 01/22/2013 - 19:51
makeawish
Offline
Joined: 12/03/2012
Groups: None

Ok,

now while we mastered the php mystery and the limitations, we are able to create doc's edit them delete
them and all is fine. here is my scenario and i hope someone can provide me an example or at least point me in a direction where i can find what i need.
In my app i am storing picture information like location, where the files are stored etc in a json doc on couchbase.
I also have an array called folders in that json doc which has one or more id's of the folder in format like "2.10"
"5.4" the way it works is the first nbr is the userid, the second part the folderid. i have written a view in
console to use doc.folder as key. All well so far..

how can i get the data of a view in php now for all docs where the key in view is for example "4.2"

that would get me the info on all images who are stored logically in one folder ?

hope there is a way to do so that i dont have to store my keys in mysql to get a list of all docs..

thanks

Top
  • Login or register to post comments
Wed, 01/23/2013 - 22:20
ingenthr
Offline
Joined: 03/16/2010
Groups:

You should have a look at the tutorial for the PHP client at couchbase.com/docs. There, is an example of views with the beer-sample database.

Top
  • Login or register to post comments
Tue, 01/29/2013 - 17:17
OZ
Offline
Joined: 01/18/2013
Groups: None

There is no examples how to create view.
Please vote:
http://www.couchbase.com/issues/browse/PCBC-185

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