hasql-transaction-io 0.1.0.0 → 0.2.0.0
raw patch · 2 files changed
+5/−3 lines, 2 filesdep ~hasqlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hasql
API changes (from Hackage documentation)
Files
hasql-transaction-io.cabal view
@@ -1,7 +1,9 @@ cabal-version: 2.4 name: hasql-transaction-io-version: 0.1.0.0+version: 0.2.0.0 synopsis: Perform IO actions during transactions for Hasql+description: + Perform IO actions during transactions for Hasql. If you need transactions in hasql but do not need to perform IO in the middle of the transaction, use haslq-transaction. This packages differs from hasql-transaction in that it sacrifices invisible retries for the ability to perform arbitrary IO in the middle of a transaction. This is beneficial when your transaction is long-lived (e.g. when using cursors) and you wish to perform IO with requested data. See <https://hackage.haskell.org/package/hasql-streams-core hasql-streams-core> for an example use case. homepage: https://github.com/andremarianiello/hasql-transaction-io bug-reports: https://github.com/andremarianiello/hasql-transaction-io/issues@@ -45,7 +47,7 @@ , base >=4.14 && <4.17 , bytestring >=0.10 , bytestring-tree-builder ^>=0.2- , hasql ^>=1.5+ , hasql ^>=1.6 , mtl ^>=2.2 , resourcet ^>=1.2 , safe-exceptions ^>=0.1
library/Hasql/Private/CursorTransactionIO.hs view
@@ -58,7 +58,7 @@ ignoreFailedTransactionError :: MonadError QueryError m => m () -> m () ignoreFailedTransactionError sess = catchError sess $ \qe -> case qe of- QueryError _ _ (ResultError (ServerError "25P02" _ _ _)) -> pure ()+ QueryError _ _ (ResultError (ServerError "25P02" _ _ _ _)) -> pure () _ -> throwError qe -- | Run a `Statement` using a cursor