packages feed

tmp-postgres 1.29.0.0 → 1.29.0.1

raw patch · 4 files changed

+9/−4 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,8 @@ Changelog for tmp-postgres +1.29.0.1+  #214 Parallel stop is 8 ms faster.+ 1.29.0.0   #211 Revert behavior of Permanent to not create the directory if it does not exist   #210 The signature of takeSnapshot is not as useful as it could be breaking change
benchmark/Main.hs view
@@ -139,4 +139,6 @@   , bench "withSnapshot" $ perRunEnvWithCleanup (either throwIO (pure . Once) =<< startConfig defaultConfig) (stop . unOnce) $       \ ~(Once db) -> void $ withSnapshot db $ const $ pure () +  , bench "stop" $ perRunEnvWithCleanup (either throwIO (pure . Once) =<< start) (stop . unOnce) $+      \ ~(Once db) -> stop db   ]
src/Database/Postgres/Temp/Internal.hs view
@@ -9,6 +9,7 @@ import Database.Postgres.Temp.Internal.Core import Database.Postgres.Temp.Internal.Config +import qualified Control.Concurrent.Async as Async import           Control.DeepSeq import           Control.Exception import           Control.Monad (void, join)@@ -328,9 +329,8 @@ -- --   @since 1.12.0.0 stop :: DB -> IO ()-stop DB {..} = do-  void $ stopPlan dbPostgresProcess-  cleanupConfig dbResources+stop DB {..} =+  Async.concurrently_ (stopPlan dbPostgresProcess) $ cleanupConfig dbResources  -- | Only stop the @postgres@ process but leave any temporary resources. --   Useful for testing backup strategies when used in conjunction with
tmp-postgres.cabal view
@@ -1,5 +1,5 @@ name:                tmp-postgres-version:             1.29.0.0+version:             1.29.0.1 synopsis: Start and stop a temporary postgres description: Start and stop a temporary postgres. See README.md homepage:            https://github.com/jfischoff/tmp-postgres#readme