class Clickhouse

Included Modules

Defined in:

clickhouse.cr:10
clickhouse.cr:19
clickhouse/query_builder.cr
clickhouse/query_tokenizer.cr

Constructors

Instance Method Summary

Instance methods inherited from module Clickhouse::Reflection

database(name : String) : Database database, databases : Array(Database) databases, table(database : String, name : String) : Table table, tables(database : String) : Array(Table) tables

Instance methods inherited from module Clickhouse::Executable

before_execute(&callback : HTTP::Client, HTTP::Request -> ) before_execute, execute(&) : Response
execute(sql : String) : Response
execute(req : Request) : Response
execute(req : InsertRequest) : Response
execute
, execute_as_csv(sql : String) : Array(Array(String)) execute_as_csv, execute_as_json(sql : String) : String execute_as_json, insert(sql : String) : Response insert

Constructor Detail

def self.new(host = nil, port = nil, database = nil, user = nil, password = nil, profile = nil, logger = nil, dns_timeout = nil, connect_timeout = nil, read_timeout = nil) #

[View source]

Instance Method Detail

def connect_timeout : Float64 #

def connect_timeout=(v : Float64) : Float64 #

def connect_timeout=(v : Nil) #

nil assignments are always ignored


def connect_timeout? : Float64 | Nil #

def database : String #

def database=(v : String) : String #

def database=(v : Nil) #

nil assignments are always ignored


def database? : String | Nil #

def dns_timeout : Float64 #

def dns_timeout=(v : Float64) : Float64 #

def dns_timeout=(v : Nil) #

nil assignments are always ignored


def dns_timeout? : Float64 | Nil #

def host : String #

def host=(v : String) : String #

def host=(v : Nil) #

nil assignments are always ignored


def host? : String | Nil #

def logger : Log #

def logger=(v : Log) : Log #

def logger=(v : Nil) #

nil assignments are always ignored


def logger? : Log | Nil #

def password : String #

def password=(v : String) : String #

def password=(v : Nil) #

nil assignments are always ignored


def password? : String | Nil #

def port : Int32 #

def port=(v : Int32) : Int32 #

def port=(v : Nil) #

nil assignments are always ignored


def port? : Int32 | Nil #

def profile : String #

def profile=(v : String) : String #

def profile=(v : Nil) #

nil assignments are always ignored


def profile? : String | Nil #

def read_timeout : Float64 #

def read_timeout=(v : Float64) : Float64 #

def read_timeout=(v : Nil) #

nil assignments are always ignored


def read_timeout? : Float64 | Nil #

def uri : URI #

def uri=(v : URI) : URI #

def uri=(v : Nil) #

nil assignments are always ignored


def uri? : URI | Nil #

def user : String #

def user=(v : String) : String #

def user=(v : Nil) #

nil assignments are always ignored


def user? : String | Nil #