graphql-engine/server/lib/pool
Samir Talwar 8625228ab3 pool: Add test coverage to the resource pool.
Adds a bunch of tests to the _resource-pool_ code to try and track down a bug.

Not surprisingly, all tests pass, which means that this didn't help. I still think it's worth keeping them.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7330
GitOrigin-RevId: 6d4deb9af5b192b3a0aa34ac0751d28e12b22b48
2022-12-21 09:45:58 +00:00
..
Data [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00
test pool: Add test coverage to the resource pool. 2022-12-21 09:45:58 +00:00
.hgignore [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00
.hgtags [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00
LICENSE [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00
README.markdown [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00
resource-pool.cabal pool: Add test coverage to the resource pool. 2022-12-21 09:45:58 +00:00
Setup.lhs [tooling] import hasura/pool into monorepo 2022-12-12 16:10:25 +00:00

Hasura fork

This is a fork of the package resource-pool with the following changes:

  • createPool' allows setting a timeout on resource acquisition.
  • getInUseResourceCount counts the number of resources in use.

Welcome to pool

pool is a fast Haskell library for managing medium-lifetime pooled resources, such as database connections.

Join in!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/bos/pool.git

There's also a Mercurial mirror:

  • hg clone http://bitbucket.org/bos/pool

(You can create and contribute changes using either git or Mercurial.)

Authors

This library is written and maintained by Bryan O'Sullivan, bos@serpentine.com.