class
CryBase::CouchBase::Services::Query::Cursor
- CryBase::CouchBase::Services::Query::Cursor
- Reference
- Object
Overview
Single-use streaming cursor returned by Query::Client#query_cursor and
Query::Cluster#query_cursor.
The HTTP request starts when #each or #each_as is called. Rows are yielded as
they are parsed from the Query response body, and the final Result is stored
in #result after the cursor is fully consumed.
Defined in:
crybase/couchbase/services/query/cursor.crInstance Method Summary
- #close : Nil
- #closed? : Bool
- #each(&block : JSON::Any -> ) : Result
- #each_as(type : T.class, &block : T -> ) : Result forall T
- #result : Result | Nil