@@ -1,3 +1,13 @@
2+Module: Squeal.PostgreSQL.Definition
3+Description: Pooled connections
4+Copyright: (c) Eitan Chatav, 2017
5+Maintainer: eitan@morphism.tech
6+Stability: experimental
8+A `MonadPQ` for pooled connections.
1{-# LANGUAGE
11{-# LANGUAGE
3 , DeriveFunctor
13 , DeriveFunctor
@@ -22,6 +32,8 @@ import Generics.SOP (K(..))
22import Squeal.PostgreSQL.PQ
32import Squeal.PostgreSQL.PQ
23import Squeal.PostgreSQL.Schema
33import Squeal.PostgreSQL.Schema
35+-- | `PoolPQ` @schema@ should be a drop-in replacement for
36+-- `PQ schema schema`.
25newtype PoolPQ (schema :: TablesType) m x =
37newtype PoolPQ (schema :: TablesType) m x =
26 PoolPQ { runPoolPQ :: Pool (K Connection schema) -> m x }
38 PoolPQ { runPoolPQ :: Pool (K Connection schema) -> m x }
27 deriving Functor
39 deriving Functor