API

Types

Functions

ClickHouse.connect — Function
connect(host = "localhost", port = 9000;
    database = "",
    username = "default",
    password = "",
    connection_timeout = DBMS_DEFAULT_CONNECT_TIMEOUT,
    max_insert_block_size = DBMS_DEFAULT_MAX_INSERT_BLOCK,
    send_buffer_size = DBMS_DEFAULT_BUFFER_SIZE,
    compression = COMPRESSION_NONE

)

Return ClickHouseSock connected to ClickHouse server with the specified parameters. The endpoint must use unencrypted native TCP; HTTPS and TLS are not supported. compression selects the format of outgoing data blocks and enables compressed replies when it is not COMPRESSION_NONE. The server chooses the reply format; the client reads it from each block's header.

source
ClickHouse.connect! — Function
connect!(sock::ClickHouseSock; force = false)

Connects sock to ClickHouse server using connection settings from sock.settings If force = false and sock already connected then existing connection is used If force = true then sock then the socket is closed and a new connection is created

source
ClickHouse.insert — Function

Insert blocks into a table, reading from an iterable. Each block maps Symbol column names to arrays through keys and pairs, for example a Dict or NamedTuple. All columns must have the same length. Returns once the server confirms completion; progress updates do not interrupt the insert.

source