Liking cljdoc? Tell your friends :D

sidebar_position: 1

import { hugsqlVersion } from '@site/src/version.js'

Installation

Dependencies

deps.edn


{`com.layerware/hugsql {:mvn/version "${hugsqlVersion}"}`}

Leiningen


{`[com.layerware/hugsql "${hugsqlVersion}"]`}

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. :::

Can you improve this documentation?Edit on GitHub

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

× close