Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class HasOpaleyeEnv c where Source
closeEnv :: OpaleyeEnv -> IO () Source
data OpaleyeError Source
class AsOpaleyeError r where Source
Nothing
type CanOpaleye c e m = (MonadReader c m, MonadError e m, MonadIO m, Applicative m, AsOpaleyeError e, HasOpaleyeEnv c) Source
liftQueryFirst :: (CanOpaleye c e m, Default QueryRunner a b, Applicative m) => Query a -> m (Maybe b) Source
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