opaleye-classy-0.3.0.0: Opaleye wrapped up in classy MTL attire.

Safe HaskellNone
LanguageHaskell2010

Opaleye.Classy

Documentation

class HasOpaleyeEnv c where Source

Minimal complete definition

opaleyeEnv

liftQuery :: (CanOpaleye c e m, Default QueryRunner a b) => Query a -> m [b] Source

liftInsert :: CanOpaleye c e m => Table colW colR -> colW -> m Int64 Source

liftInsertReturning :: (CanOpaleye c e m, Default QueryRunner ret hask, Default Unpackspec ret ret) => Table colW colR -> (colR -> ret) -> colW -> m [hask] Source

liftDelete :: CanOpaleye c e m => Table colW colR -> (colR -> Column PGBool) -> m Int64 Source

liftUpdate :: CanOpaleye c e m => Table colW colR -> (colR -> colW) -> (colR -> Column PGBool) -> m Int64 Source

derivePGField :: forall a b. FromField a => (a -> b) -> Field -> Maybe ByteString -> Conversion b Source