class Clickhouse::Response::JSONCompactParser
- Clickhouse::Response::JSONCompactParser
- Reference
- Object
Included Modules
- Enumerable(Array(Array(Float32) | Array(Float64) | Array(Int16) | Array(Int32) | Array(Int64) | Array(Int8) | Array(String) | Array(Time) | Array(UInt16) | Array(UInt32) | Array(UInt64) | Array(UInt8) | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Time | UInt16 | UInt32 | UInt64 | UInt8 | Nil))
Defined in:
clickhouse/response/json_compact_parser.cr:1clickhouse/response/json_compact_parser.cr:42
Constructors
Class Method Summary
Instance Method Summary
- #data
- #data=(value : Array(Array(JSON::Any)))
- #data? : Array(Array(JSON::Any))?
-
#each(&)
Must yield this collection's elements to the block.
- #field(i : Int32)
- #meta
- #meta=(value : Array(Field))
- #meta? : Array(Clickhouse::Response::Field)?
- #rows
- #rows=(value : Int64)
- #rows? : Int64?
- #scalar
- #statistics
- #statistics=(value : Statistics)
- #statistics? : Clickhouse::Response::Statistics?
-
#to_h
Creates a
Hash
out of an Enumerable where each element is a 2 element structure (for instance aTuple
or anArray
). - #to_json(json : JSON::Builder)
Constructor Detail
Class Method Detail
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(Array(Array(Float32) | Array(Float64) | Array(Int16) | Array(Int32) | Array(Int64) | Array(Int8) | Array(String) | Array(Time) | Array(UInt16) | Array(UInt32) | Array(UInt64) | Array(UInt8) | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Time | UInt16 | UInt32 | UInt64 | UInt8 | Nil))
Must yield this collection's elements to the block.
def to_h
#
Description copied from module Enumerable(Array(Array(Float32) | Array(Float64) | Array(Int16) | Array(Int32) | Array(Int64) | Array(Int8) | Array(String) | Array(Time) | Array(UInt16) | Array(UInt32) | Array(UInt64) | Array(UInt8) | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Time | UInt16 | UInt32 | UInt64 | UInt8 | Nil))
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}