opaleye-trans 0.3.6 → 0.3.7
raw patch · 2 files changed
+6/−6 lines, 2 filesdep ~opaleyePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: opaleye
API changes (from Hackage documentation)
Files
- opaleye-trans.cabal +4/−4
- src/Opaleye/Trans.hs +2/−2
opaleye-trans.cabal view
@@ -1,5 +1,5 @@ name: opaleye-trans-version: 0.3.6+version: 0.3.7 synopsis: A monad transformer for Opaleye description: A monad transformer for Opaleye homepage: https://github.com/WraithM/opaleye-trans@@ -26,7 +26,7 @@ mtl >=2.2 && <2.3, transformers >=0.3 && <0.6, transformers-base >=0.4 && <0.5,- opaleye >=0.4 && <0.6,+ opaleye >=0.4 && <0.7, postgresql-simple >=0.4 && <0.6, product-profunctors >=0.6 && <0.9 @@ -36,7 +36,7 @@ default-language: Haskell2010 build-depends: base >=4.8 && <4.11,- opaleye >=0.4 && <0.6,+ opaleye >=0.4 && <0.7, postgresql-simple >=0.4 && <0.6, product-profunctors >=0.6 && <0.9, opaleye-trans@@ -47,7 +47,7 @@ default-language: Haskell2010 build-depends: base >=4.8 && <4.11,- opaleye >=0.4 && <0.6,+ opaleye >=0.4 && <0.7, postgresql-simple >=0.4 && <0.6, product-profunctors >=0.6 && <0.9, opaleye-trans
src/Opaleye/Trans.hs view
@@ -117,7 +117,7 @@ -- | Insert into a 'Table'. See 'runInsert'. insert :: Table w r -> w -> Transaction Int64-insert t w = withConnIO (\c -> runInsert c t w)+insert t w = withConnIO (\c -> runInsertMany c t [w]) -- | Insert many records into a 'Table'. See 'runInsertMany'.@@ -132,7 +132,7 @@ -> (r -> a) -> w -> Transaction [b]-insertReturning t ret w = withConnIO (\c -> runInsertReturning c t w ret)+insertReturning t ret w = withConnIO (\c -> runInsertManyReturning c t [w] ret) -- | Insert a record into a 'Table' with a return value. Retrieve only the first result.