项目作者: duct-framework

项目描述 :
Integrant methods for a SQL database connection pool
高级语言: Clojure
项目地址: git://github.com/duct-framework/database.sql.hikaricp.git
创建时间: 2017-03-09T22:26:41Z
项目社区:https://github.com/duct-framework/database.sql.hikaricp

开源协议:

下载


Duct database.sql.hikaricp Build Status

Integrant methods for connecting to a SQL database from the
Duct framework using HikariCP, an efficient connection pool.

Installation

Add the following dependency to your deps.edn file:

  1. org.duct-framework/database.sql.hikaricp {:mvn/version "0.7.0"}

Or to your Leiningen project file:

  1. [org.duct-framework/database.sql.hikaricp "0.7.0"]

Usage

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.

  1. {:duct.database.sql/hikaricp {:jdbcUrl "jdbc:sqlite:db/example.sqlite"}}

License

Copyright © 2024 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.