struct

ClickHouse::Config

Inherits Struct < Value < Object

Constructors

from_string(value : String, *, tls_ca : String | Nil = nil, tls_hostname : String | Nil = nil, tls_verify : Bool | Nil = nil, compression : Symbol | Nil = nil, **options) : self
Source
new(host : String = "127.0.0.1", port : Int32 = 9000, database : String = "default", username : String = "default", password : String = "", tls : Bool = false, tls_verify : Bool = true, tls_ca : String | Nil = nil, tls_hostname : String | Nil = nil, compression : Symbol = :none, connect_timeout : Time::Span = 5.seconds, read_timeout : Time::Span = 30.seconds, write_timeout : Time::Span = 30.seconds, query_timeout : Time::Span = 30.seconds, batch_size : Int32 = 1000, batch_bytes : Int32 = (8 * 1024) * 1024, max_result_rows : Int32 = 1000000, max_result_bytes : Int32 = (64 * 1024) * 1024)
Source

Instance methods

batch_bytes
Source
batch_size
Source
compression
Source
connect_timeout
Source
database
Source
host
Source
inspect(io : IO) : Nil

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
Source
max_result_bytes
Source
max_result_rows
Source
password
Source
port
Source
query_timeout
Source
read_timeout
Source
tls?
Source
tls_ca
Source
tls_hostname
Source
tls_verify?
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
username
Source
write_timeout
Source