@hackage hasql-resource-pool0.6.0.0

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

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 stripes is delegated to the upgraded resource-pool (which has slightly different semantics compared to v0.2.x).
  • No reliance on Stack tooling.