packages feed

bolty-streamly 0.1.0.1 → 0.1.0.2

raw patch · 3 files changed

+16/−8 lines, 3 filesdep ~boltyPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: bolty

API changes (from Hackage documentation)

Files

bolty-streamly.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           bolty-streamly-version:        0.1.0.1+version:        0.1.0.2 synopsis:       Streamly streaming interface for bolty Neo4j driver description:    Streaming queries over Neo4j using streamly streams.                 Wraps bolty's query functions with streamly's Stream type for@@ -65,7 +65,7 @@   ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-name-shadowing -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe   build-depends:       base >=4.18 && <5-    , bolty >=0.1.1.0 && <0.2+    , bolty >=0.2.0.0 && <0.3     , packstream-bolt ==0.1.*     , streamly-core ==0.2.*     , text >=2.0 && <2.2@@ -106,7 +106,7 @@   ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-name-shadowing -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe -threaded -rtsopts -with-rtsopts=-N -Wno-missing-export-lists -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-unused-imports -Wno-unused-packages   build-depends:       base >=4.18 && <5-    , bolty >=0.1.1.0 && <0.2+    , bolty >=0.2.0.0 && <0.3     , bolty-streamly     , data-default     , packstream-bolt ==0.1.*@@ -151,7 +151,7 @@   ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-import-lists -Wno-missing-safe-haskell-mode -Wno-name-shadowing -Wno-prepositive-qualified-module -Wno-safe -Wno-unsafe -threaded -rtsopts -with-rtsopts=-N -Wno-missing-export-lists -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-unused-imports -Wno-unused-packages   build-depends:       base >=4.18 && <5-    , bolty >=0.1.1.0 && <0.2+    , bolty >=0.2.0.0 && <0.3     , bolty-streamly     , packstream-bolt ==0.1.*     , sandwich
changelog.md view
@@ -6,6 +6,15 @@ and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/). +## 0.1.0.2++- Bump bolty dependency bound to `>= 0.2.0.0 && < 0.3` (was `>= 0.1.1.0 && < 0.2`).+  Required by bolty 0.2.0.0's breaking changes: `Begin.mode` changed from `Char` to+  the new `AccessMode` type, and `AccessMode(..)` moved from `Database.Bolty.Routing`+  to the new `Database.Bolty.AccessMode` module (still re-exported from `Database.Bolty`).+- Internal: `sessionAcquire` now threads the `AccessMode` value directly into `Begin`+  instead of converting to a `Char` first. No behavioural change. Public API unchanged.+ ## 0.1.0.0  - Initial release
src/Database/Bolty/Streamly.hs view
@@ -65,6 +65,7 @@ import           Streamly.Data.Stream           (Stream) import qualified Streamly.Data.Stream           as Stream +import           Database.Bolty.AccessMode      (AccessMode(..)) import           Database.Bolty.Connection      (requestResponseRunIO) import qualified Database.Bolty.Connection.Pipe as P import           Database.Bolty.Connection.Type@@ -75,8 +76,7 @@                                                   acquireConnection, releaseConnection,                                                   releaseConnectionOnError) import           Database.Bolty.Record          (Record)-import           Database.Bolty.Routing         (AccessMode(..), RoutingPool,-                                                  acquireRoutingConnection)+import           Database.Bolty.Routing         (RoutingPool, acquireRoutingConnection) import           Database.Bolty.Session         (Session(..), SessionPool(..), SessionConfig(..),                                                   BookmarkManager, getBookmarks, updateBookmark) @@ -326,12 +326,11 @@ sessionAcquire :: SessionPool -> BookmarkManager -> SessionConfig -> IORef Bool                -> AccessMode -> IO CheckedOutConnection sessionAcquire sPool sBookmarks sConfig _telRef mode = do-  let modeChar = case mode of { ReadAccess -> 'r'; WriteAccess -> 'w' }   let db = sessionDatabase sConfig   coc <- acquireSessionConnection sPool mode   let conn = cocConnection coc   bms <- getBookmarks sBookmarks-  P.beginTx conn $ Begin (V.fromList bms) Nothing H.empty modeChar db Nothing+  P.beginTx conn $ Begin (V.fromList bms) Nothing H.empty mode db Nothing   pure coc