/clickhouse-odbc

ODBC driver for ClickHouse

Primary LanguageC++OtherNOASSERTION

Building (Linux)

  1. Install unixodbc >= 2.3.0
sudo apt install unixodbc-dev
  1. At the root of source directory:
mkdir -p build; cd build && cmake .. && make -j $(nproc || sysctl -n hw.ncpu || echo 2)
  1. clickhouse-odbc.so will be at build/driver/clickhouse-odbc.so

ODBC configuration

vim ~/.odbc.ini:

[ClickHouse]
Driver = $(PATH_OF_CLICKHOUSE_ODBC_SO)
Description = ClickHouse driver
DATABASE = default
SERVER = localhost
PORT = 8123
FRAMED = 0

Testing

Run isql -v ClickHouse