Liking cljdoc? Tell your friends :D

HugSQL Adapter ClickHouse Native JDBC

Clojars Project

An adapter between HugSQL and the ClickHouse Native JDBC driver.

Usage

Follow the HugSQL documentation for using third-party adapters.

Add the following to your project.clj:

Then you have to install the adapter:

(ns core
  (:require [hugsql.core :as hugsql]
            [hugsql.adapter.clickhouse-native-jdbc :as clickhouse]))

(hugsql/def-db-fns "fns.sql")
(hugsql/set-adapter! (clickhouse/hugsql-adapter-))

Tests

The tests assume you have a local instance of ClickHouse running on port 9000.

%> lein test

License

Copyright © 2019 2DA Analytics

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close