Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duct-framework/database.sql.hikaricp
Integrant methods for a SQL database connection pool
https://github.com/duct-framework/database.sql.hikaricp
clojure connection-pool duct integrant sql
Last synced: 6 days ago
JSON representation
Integrant methods for a SQL database connection pool
- Host: GitHub
- URL: https://github.com/duct-framework/database.sql.hikaricp
- Owner: duct-framework
- Created: 2017-03-09T22:26:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T02:58:18.000Z (3 months ago)
- Last Synced: 2025-01-05T23:24:27.367Z (about 1 month ago)
- Topics: clojure, connection-pool, duct, integrant, sql
- Language: Clojure
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Duct database.sql.hikaricp [![Build Status](https://github.com/duct-framework/database.sql.hikaricp/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/database.sql.hikaricp/actions/workflows/test.yml)
[Integrant][] methods for connecting to a SQL database from the
[Duct][] framework using [HikariCP][], an efficient connection pool.[integrant]: https://github.com/weavejester/integrant
[duct]: https://github.com/duct-framework/duct
[hikaricp]: https://github.com/brettwooldridge/HikariCP## Installation
Add the following dependency to your deps.edn file:
org.duct-framework/database.sql.hikaricp {:mvn/version "0.7.0"}
Or to your Leiningen project file:
[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.```edn
{:duct.database.sql/hikaricp {:jdbcUrl "jdbc:sqlite:db/example.sqlite"}}
```[database.sql]: https://github.com/duct-framework/database.sql
[config options]: https://github.com/brettwooldridge/HikariCP#gear-configuration-knobs-baby## License
Copyright © 2024 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.