Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
dbEnvConn :: HasDbEnv c => Lens' c Connection Source
_DbSqlError :: AsDbError r => Prism' r SqlError Source
_DbQueryError :: AsDbError r => Prism' r QueryError Source
_DbResultError :: AsDbError r => Prism' r ResultError Source
type CanDb m c e = (MonadReader c m, MonadError e m, MonadIO m, Applicative m, AsDbError e, HasDbEnv c) Source
liftQueryFirst :: (CanDb m c e, Default QueryRunner a b, Applicative m) => Query a -> m (Maybe b) Source
liftInsert :: CanDb m c e => Table colW colR -> colW -> m Int64 Source
liftInsertReturning :: (CanDb m c e, Default QueryRunner ret hask, Default Unpackspec ret ret) => Table colW colR -> (colR -> ret) -> colW -> m [hask] Source
liftUpdate :: CanDb m c e => 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