fused-effects-squeal: A fused-effects adapter for squeal-postgresql.

[ bsd3, control, library ] [ Propose Tags ]

A fused-effects adapter for squeal-postgresql. It allows you to conjure MonadPQ instances and manage connection pools in a fused-effects stack.


[Skip to Readme]
Versions [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies 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) [details]
License BSD-3-Clause
Copyright Ilya Kostyuchenko
Author Ilya Kostyuchenko
Maintainer ilyakooo0@gmail.com
Category Control
Home page https://github.com/ilyakooo0/fused-effects-squeal#readme
Uploaded by iko at 2020-01-26T15:51:39Z
Distributions NixOS:0.1.0.0
Downloads 194 total (3 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-01-26 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for fused-effects-squeal-0.1.0.0

[back to package description]

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.