cotag / libcouchbase

libcouchbase ruby FFI with libuv integration
Other
11 stars 8 forks source link

Support for Limit, Skip and Descending on View Iteration #12

Closed PascalTurbo closed 6 years ago

PascalTurbo commented 6 years ago

Couchbase allows to query a view by different operators:

stakach commented 6 years ago

All these are supported.

See the bucket function:

def view(design, view, include_docs: true, is_spatial: false, **opts, &row_modifier)
# ...
end

The **opts is passed directly to the view query

bucket.view('zone', 'all', limit: 5, skip: 10,  descending: true)

So it supports all the params: https://developer.couchbase.com/documentation/server/3.x/admin/Views/views-querying.html#story-h2-1