Ruby and N1QL Support


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 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.


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


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