packages feed

opaleye-trans 0.3.3 → 0.3.4

raw patch · 2 files changed

+15/−6 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Opaleye.Trans: delete :: Table a columnsR -> (columnsR -> Column PGBool) -> Transaction Int64
- Opaleye.Trans: insertManyReturning :: (MonadIO m, Default QueryRunner a b) => Table w r -> (r -> a) -> [w] -> OpaleyeT m [[b]]
+ Opaleye.Trans: insertManyReturning :: (Default QueryRunner a b) => Table w r -> [w] -> (r -> a) -> Transaction [b]

Files

opaleye-trans.cabal view
@@ -1,5 +1,5 @@ name:                opaleye-trans-version:             0.3.3+version:             0.3.4 synopsis:            A monad transformer for Opaleye description:         A monad transformer for Opaleye homepage:            https://github.com/WraithM/opaleye-trans
src/Opaleye/Trans.hs view
@@ -30,6 +30,9 @@     , updateReturning     , updateReturningFirst +    , -- * Deletes+      delete+     , -- * Utilities       withConn @@ -147,13 +150,13 @@ -- -- Maybe not worth defining. This almost certainly does the wrong thing. insertManyReturning-    :: (MonadIO m, Default QueryRunner a b)+    :: (Default QueryRunner a b)     => Table w r-    -> (r -> a)     -> [w]-    -> OpaleyeT m [[b]]-insertManyReturning t ret ws =-    transaction (mapM (insertReturning t ret) ws)+    -> (r -> a)+    -> Transaction [b]+insertManyReturning t ws ret =+    withConnIO (\c -> runInsertManyReturning c t ws ret)   -- | Update items in a 'Table' where the predicate is true.  See 'runUpdate'.@@ -183,3 +186,9 @@     -> Transaction (Maybe haskells) updateReturningFirst table r2w predicate r2returned =     listToMaybe <$> updateReturning table r2w predicate r2returned++delete+    :: Table a columnsR+    -> (columnsR -> Column PGBool)+    -> Transaction Int64+delete table r2b = withConnIO (\c -> runDelete c table r2b)