Skip to main content

Installation

Dependencies​

deps.edn​

com.layerware/hugsql {:mvn/version "0.5.3"}

Leiningen​

[com.layerware/hugsql "0.5.3"]

JDBC Driver Dependencies​

You will also need to specify your JDBC driver dependency from one of the following:

For example, to provide support for Postgresql:

Postgresql JDBC deps.edn​

org.postgresql/postgresql {:mvn/version "42.3.1"}

Postgresql JDBC Leiningen​

[org.postgresql/postgresql "42.3.1"]
info

HugSQL defaults to using the clojure.java.jdbc library to run underlying database commands. If you would prefer to use another underlying database library instead of clojure.java.jdbc, such as next.jdbc, please see HugSQL Adapters.