hasql 0.19.13 → 0.19.14
raw patch · 3 files changed
+10/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Hasql.Connection: withLibPQConnection :: Connection -> (Connection -> IO a) -> IO a
Files
hasql.cabal view
@@ -1,7 +1,7 @@ name: hasql version:- 0.19.13+ 0.19.14 category: Hasql, Database, PostgreSQL synopsis:
library/Hasql/Connection.hs view
@@ -8,6 +8,7 @@ release, Settings, settings,+ withLibPQConnection ) where
library/Hasql/Private/Connection.hs view
@@ -42,3 +42,11 @@ nullConnection <- LibPQ.newNullConnection pqConnection <- swapMVar pqConnectionRef nullConnection IO.releaseConnection pqConnection++-- |+-- Execute an operation on the raw @libpq@ 'LibPQ.Connection'.+--+-- The access to the connection is exclusive.+withLibPQConnection :: Connection -> (LibPQ.Connection -> IO a) -> IO a+withLibPQConnection (Connection pqConnectionRef _ _) =+ withMVar pqConnectionRef