Ruby and N1QL Support


#1

We are using ruby and looking to switch from view-based to n1ql and have some question:

  1. Is N1QL support in Ruby? Looking at http://www.rubydoc.info/github/couchbase/couchbase-ruby-client/Couchbase%2FBucket%3Aquery it says ‘Perform N1QL query to the cluster. This API is experimental and subject to change in future.’

  2. A can query couchbase but how to do I set the consistency flag?
    I tried
    connection.query(query_limit, {:scan_consistency => 'request_plus'}}
    but it seems it did not have affect.


#2

Any update on how to set the consistency in the ruby gem?


#3

Hi @dipen_patel, with this patch, current master (and future 2.0 release) will support request_plus scan consistency as well as other query options.

Thanks for feedback