ClickHouse¶
Installation¶
Connection URL¶
Connect to ClickHouse by passing a connection URL to the Database
constructor:
Connection Parameters¶
Alternatively, connect using the Database.from_clickhouse()
method with parameters:
PARAMETER | DESCRIPTION |
---|---|
host
|
Host name of the ClickHouse server. Default is 'localhost'.
TYPE:
|
port
|
ClickHouse HTTP server's port. If not passed, the value depends on whether secure is True or False.
TYPE:
|
database
|
Default database when executing queries. Default is 'default'.
TYPE:
|
user
|
User to authenticate with. Default is 'default'.
TYPE:
|
password
|
Password to authenticate with. Default is ''.
TYPE:
|
client_name
|
Name of client that will appear in ClickHouse server logs. Default is 'ibis'.
TYPE:
|
secure
|
Whether or not to use an authenticated endpoint.
TYPE:
|
compression
|
The kind of compression to use for requests. See ClickHouse Python Compression Docs for more information. Default is True.
TYPE:
|
match_schema
|
Regex pattern to filter schemas. Mutually exclusive with match_tables.
TYPE:
|
match_tables
|
Regex pattern to filter tables. Mutually exclusive with match_schema.
TYPE:
|
**kwargs
|
Client specific keyword arguments.
TYPE:
|