hasql-resource-pool: A pool of connections for Hasql based on resource-pool.

[ database, hasql, library, mit, postgresql ] [ Propose Tags ] [ Report a vulnerability ]

This package was originally derived from hasql-pool v0.5.2.2. It continues using `resource-pool` for its pool implementation.


[Skip to Readme]

Modules

[Last Documentation]

  • Hasql
    • Hasql.Pool
      • Hasql.Pool.Observer

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.5.3.0, 0.5.3.1, 0.5.3.2, 0.5.4.0, 0.5.4.1, 0.6.0.0, 1.9.1.2 (info)
Change log CHANGELOG.md
Dependencies base-prelude (>=1 && <2), clock (>=0.8 && <1), hasql (>=1.9.1.2 && <2), resource-pool (>=0.4.0.0 && <1), text (>=2.0 && <3), time (>=1.5 && <2) [details]
License MIT
Copyright (c) 2025, Maxim Avanov
Author Nikita Volkov <nikita.y.volkov@mail.ru>
Maintainer Maxim Avanov <maxim.avanov@gmail.com>
Category Hasql, Database, PostgreSQL
Home page https://github.com/avanov/hasql-resource-pool
Bug tracker https://github.com/avanov/hasql-resource-pool/issues
Source repo head: git clone git://github.com/avanov/hasql-resource-pool.git -b master
Uploaded by avanov at 2025-05-28T18:32:15Z
Distributions
Downloads 468 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2025-05-28 [all 2 reports]

Readme for hasql-resource-pool-1.9.1.2

[back to package description]

hasql-resource-pool

This is a fork of hasql-pool that continues using resource-pool for its underlying pool implementation.

The fork is based on 0.5.2.2 release (as the latest original implementation based on resource-pool), and it includes the following API and layout changes:

  • Connections are based on settings with IO actions. This change to the API makes the library usable with the custom authentication methods such as AWS RDS IAM tokens.
  • Pool interface allows for specifying IO observer actions. These actions are useful for collecting and tracking various pool metrics with tools like Prometheus.
  • Decision making on the size of the pool stripes is delegated to the upgraded resource-pool (it has slightly different semantics compared to v0.2.x).
  • No reliance on Stack tooling.
nix-shell
make build-local