Clickhouse::Response::JSONCompactParser
Inherits Enumerable / Reference / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(__temp_102 : JSON::Any)
SourceClass methods
data(body : String) : String
Sourcefrom_json(string : String)
Sourceparse(body : String)
SourceInstance methods
data
Sourcedata=(value : Array(Array(JSON::Any)))
Sourcedata?
Sourcefield(i : Int32)
Sourcemeta
Sourcemeta=(value : Array(Field))
Sourcemeta?
Sourcerows
Sourcerows=(value : Int64)
Sourcerows?
Sourcescalar
Sourcestatistics
Sourcestatistics=(value : Statistics)
Sourcestatistics?
Sourceto_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}
to_json(json : JSON::Builder)
Source