@hackage fused-effects-squeal0.1.0.0
A fused-effects adapter for squeal-postgresql.
Categories
License
BSD-3-Clause
Maintainer
ilyakooo0@gmail.com
Links
- Homepage
- Documentation
- No source repository
- Changelog
- Security
Versions
- 0.1.0.0 Sun, 26 Jan 2020
Installation
Dependencies (6)
- base >=4.7 && <5
- fused-effects >=1.0.0.0 && <1.1
- squeal-postgresql >=0.5.2.0 && <0.6
- unliftio >=0.2.12 && <0.3
- unliftio-core >=0.1.2.0 && <0.2
- unliftio-pool >=0.2.1.0 && <0.3 Show all…
Dependents (0)
fused-effects-squeal
This is an overview of the way this library works. If you would like to learn how Squeal itself works you should head to the morphismtech/squeal repository.
Usage
There are two sepaeate effects with corresponding carriers: Squeal (with SquealC) and SquealPool (with SquealPoolC).
Squeal mimics the functions from MonadPQ (from squeal-postgresql) and represnts the "inside a transaction" effect.
You can run it directly with runSquealWithConn family of functions, but you probably want to use a connection pool.
SquealPool allows you to call runSqueal function, which picks a connection from the connection pool and runs the Squeal effect.