packages feed

tmp-postgres 1.25.0.0 → 1.25.0.1

raw patch · 4 files changed

+21/−9 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,8 @@ Changelog for tmp-postgres +1.25.0.1+  #188 Document all fields of Config+ 1.25.0.0   #186 Rename CacheResources and cacheResourcesToConfig 
benchmark/Main.hs view
@@ -54,12 +54,12 @@ setupCacheAndSP :: IO (Cache, Snapshot, Once Config) setupCacheAndSP = do   cacheInfo <- setupCache-  let cacheConfig = defaultConfig <> cacheConfig cacheInfo-  sp <- either throwIO pure <=< withConfig cacheConfig $ \db -> do+  let theCacheConfig = defaultConfig <> cacheConfig cacheInfo+  sp <- either throwIO pure <=< withConfig theCacheConfig $ \db -> do     migrateDb db     either throwIO pure =<< takeSnapshot Temporary db -  let theConfig = defaultConfig <> snapshotConfig sp <> cacheConfig+  let theConfig = defaultConfig <> snapshotConfig sp <> theCacheConfig     pure (cacheInfo, sp, Once theConfig)@@ -90,12 +90,12 @@  -} -    setupWithCache $ \cacheConfig -> do-      bench "with migrate 10x and cache" $ whnfIO $ withConfig cacheConfig $ \_ -> do-        replicateM_ 10 $ withConfig cacheConfig $ \db ->+    setupWithCache $ \theCacheConfig -> do+      bench "with migrate 10x and cache" $ whnfIO $ withConfig theCacheConfig $ \_ -> do+        replicateM_ 10 $ withConfig theCacheConfig $ \db ->           migrateDb db >> testQuery db -  , setupWithCache $ \cacheConfig -> bench "withSnapshot migrate 10x and cache" $ whnfIO $ withConfig cacheConfig $ \db -> do+  , setupWithCache $ \theCacheConfig -> bench "withSnapshot migrate 10x and cache" $ whnfIO $ withConfig theCacheConfig $ \db -> do       migrateDb db       void $ withSnapshot Temporary db $ \snapshotDir -> do         let theSnapshotConfig = defaultConfig <> snapshotConfig snapshotDir
src/Database/Postgres/Temp/Internal/Config.hs view
@@ -454,16 +454,25 @@  -- | The high level options for overriding default behavior. -----   @since 1.16.0.0+--   @since 1.22.0.0 data Config = Config   { logger :: Last Logger+  -- ^ Internal 'Event' logger.   , initDbConfig :: Accum ProcessConfig+  -- ^ Monoid for accumulating @initdb@ configuration.   , copyConfig :: Last (Maybe CopyDirectoryCommand)+  -- ^ An optional data directory copy command.   , createDbConfig :: Accum ProcessConfig+  -- ^ Monoid for accumulating @createdb@ configuration.   , postgresConfig :: ProcessConfig+  -- ^ The @postgres@ process configuration.   , connectionOptions :: Client.Options+  -- ^ The additional client connection options.   , postgresConfigFile :: [(String, String)]+  -- ^ The @postgresql.conf@ configuration file.   , connectionTimeout :: Last Int+  -- ^ The amount of microseconds to attempt to connect+  --   to @postgres@ before throwing 'ConnectionTimedOut'   , socketDirectory  :: DirectoryType   -- ^ Override the default temporary UNIX socket directory by setting this.   , dataDirectory :: DirectoryType
tmp-postgres.cabal view
@@ -1,5 +1,5 @@ name:                tmp-postgres-version:             1.25.0.0+version:             1.25.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