class Clickhouse::Response::JSONCompactParser

Included Modules

Defined in:

clickhouse/response/json_compact_parser.cr:1
clickhouse/response/json_compact_parser.cr:42

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(__temp_79 : JSON::Any) #

[View source]

Class Method Detail

def self.data(body : String) : String #

[View source]
def self.from_json(string : String) #

[View source]
def self.parse(body : String) #

[View source]

Instance Method Detail

def data #

[View source]
def data=(value : Array(Array(JSON::Any))) #

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

[View source]
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.


[View source]
def field(i : Int32) #

[View source]
def meta #

[View source]
def meta=(value : Array(Field)) #

[View source]
def meta? : Array(Clickhouse::Response::Field)? #

[View source]
def rows #

[View source]
def rows=(value : Int64) #

[View source]
def rows? : Int64? #

[View source]
def scalar #

[View source]
def statistics #

[View source]
def statistics=(value : Statistics) #

[View source]
def statistics? : Clickhouse::Response::Statistics? #

[View source]
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}

[View source]
def to_json(json : JSON::Builder) #

[View source]