🐷🗄️ A fused-effects adapter for squeal-postgresql.
Go to file
2020-01-26 18:39:22 +03:00
src/Control export orphans from all of the places 2020-01-19 12:59:24 +03:00
fused-effects-squeal.cabal Added dexcription 2020-01-26 18:39:22 +03:00
LICENSE Initial commit 2020-01-17 20:53:39 +03:00
package.yaml Added dexcription 2020-01-26 18:39:22 +03:00
README.md Added readme 2020-01-19 13:57:32 +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

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.