Integrant methods for connecting to a SQL database from the Duct framework using HikariCP, an efficient connection pool.
Add the following dependency to your deps.edn file:
org.duct-framework/database.sql.hikaricp {:mvn/version "0.6.0"}
Or to your Leiningen project file:
[org.duct-framework/database.sql.hikaricp "0.6.0"]
This library depends on database.sql and provides the
:duct.database.sql/hikaricp
key, which is derived from
:duct.database/sql
.
The key takes the same config options as HikariCP (but as keywords,
rather than setters), and returns a duct.database.sql.Boundary
record
that contains a DataSource.
{:duct.database.sql/hikaricp {:jdbcUrl "jdbc:sqlite:db/example.sqlite"}}
Copyright © 2024 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close