class

Clickhouse::Response::JSONCompactParser

Inherits Enumerable / Reference / Object

Constructors

new(pull : JSON::PullParser)
Source
new(__temp_102 : JSON::Any)
Source

Class methods

data(body : String) : String
Source
from_json(string : String)
Source
parse(body : String)
Source

Instance methods

data
Source
data=(value : Array(Array(JSON::Any)))
Source
data?
Source
each

Must yield this collection's elements to the block.

Source
field(i : Int32)
Source
meta
Source
meta=(value : Array(Field))
Source
meta?
Source
rows
Source
rows=(value : Int64)
Source
rows?
Source
scalar
Source
statistics
Source
statistics=(value : Statistics)
Source
statistics?
Source
to_h

Creates a Hash out of an Enumerable where each element is a 2 element structure (for instance a Tuple or an Array).

[[:a, :b], [:c, :d]].to_h        # => {:a => :b, :c => :d}
Tuple.new({:a, 1}, {:c, 2}).to_h # => {:a => 1, :c => 2}
Source
to_json(json : JSON::Builder)
Source