Skip to content

petrmalkov/clickhouse-odbc

 
 

Repository files navigation

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

About

ODBC driver for ClickHouse

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.4%
  • CMake 8.3%
  • C 2.0%
  • Shell 0.3%