struct CryBase::CouchBase::Services::Query::Result

Defined in:

crybase/couchbase/services/query/result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_body(body : String) : Result #

[View source]
def self.from_stream(io : IO, &) : Result #

[View source]
def self.new(request_id : String | Nil, client_context_id : String | Nil, status : String | Nil, signature : JSON::Any | Nil, rows : Array(JSON::Any), warnings : Array(Issue), errors : Array(Issue), metrics : JSON::Any | Nil, profile : JSON::Any | Nil, raw : JSON::Any) #

[View source]

Instance Method Detail

def client_context_id : String | Nil #

[View source]
def each_row(& : JSON::Any -> ) : Nil #

[View source]
def each_row_as(type : T.class, & : T -> ) : Nil forall T #

[View source]
def error? : Bool #

[View source]
def errors : Array(Issue) #

[View source]
def issue_code?(code : Int32 | Int64) : Bool #

[View source]
def metrics : JSON::Any | Nil #

[View source]
def prepared_statement_missing? : Bool #

[View source]
def profile : JSON::Any | Nil #

[View source]
def raw : JSON::Any #

[View source]
def request_id : String | Nil #

[View source]
def rows : Array(JSON::Any) #

[View source]
def rows_as(type : T.class) : Array(T) forall T #

[View source]
def signature : JSON::Any | Nil #

[View source]
def status : String | Nil #

[View source]
def success? : Bool #

[View source]
def warnings : Array(Issue) #

[View source]