🐷🗄️ A fused-effects adapter for squeal-postgresql.
Go to file
2020-02-15 22:14:25 +03:00
src/Control export orphans from all of the places 2020-01-19 12:59:24 +03:00
CHANGELOG.md Added changelog 2020-01-26 18:44:49 +03:00
fused-effects-squeal.cabal Updated description 2020-01-26 18:50:42 +03:00
LICENSE Initial commit 2020-01-17 20:53:39 +03:00
package.yaml Updated description 2020-01-26 18:50:42 +03:00
README.md Update README.md 2020-02-15 22:14:25 +03:00
Setup.hs Initial commit 2020-01-17 20:53:39 +03:00
stack.yaml Initial commit 2020-01-17 20:53:39 +03:00

fused-effects-squeal Hackage

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.