tmp-proc-postgres 0.7.2.4 → 0.8.0.0
raw patch · 3 files changed
+16/−4 lines, 3 filesdep ~tmp-proc
Dependency ranges changed: tmp-proc
Files
- ChangeLog.md +6/−0
- src/System/TmpProc/Docker/Postgres.hs +8/−2
- tmp-proc-postgres.cabal +2/−2
ChangeLog.md view
@@ -2,6 +2,12 @@ `tmp-proc-postgres` uses [PVP Versioning][1]. +## 0.8.0.0 -- 2026-10-18++* Extend the upper bound for tmp-proc to allow 0.8+* Add `uriOfRootlessWith` to `TmpPostgres` for rootless docker support+* Update Docker image from `postgres:10.6` to `postgres:16`+ ## 0.7.2.4 -- 2025-03-25 * Relax the upper bound on bytestring
src/System/TmpProc/Docker/Postgres.hs view
@@ -52,6 +52,8 @@ , Proc (..) , ProcHandle (..) , SvcURI+ , addrHost+ , addrPort , only , startupAll , withTmpConn@@ -77,12 +79,16 @@ -- | Specifies how to run @postgres@ as a @tmp proc@. instance Proc TmpPostgres where- type Image TmpPostgres = "postgres:10.6"+ type Image TmpPostgres = "postgres:16" type Name TmpPostgres = "a-postgres-db" uriOf = mkUri' runArgs = runArgs' ping = toPinged . connectPostgreSQL . hUri reset = reset'+ uriOfRootlessWith addr pairs =+ case lookup 5432 pairs of+ Just hp -> "postgres://postgres:" <> dbPassword <> "@" <> addrPort addr hp <> "/postgres"+ Nothing -> mkUri' addr -- | Specifies how to connect to a tmp @postgres@ db.@@ -98,7 +104,7 @@ "postgres://postgres:" <> dbPassword <> "@"- <> C8.pack (Text.unpack ip)+ <> addrHost ip <> "/postgres"
tmp-proc-postgres.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: tmp-proc-postgres-version: 0.7.2.4+version: 0.8.0.0 synopsis: Launch a PostgreSQL database in docker using tmp-proc description: Demos how to use tmp-proc to run a PostgreSQL database in docker in a unittest.@@ -30,7 +30,7 @@ , bytestring >=0.10.8 && <0.11 || >=0.11.3 && <0.13 , postgresql-simple >=0.5.4 && <0.8 , text >=1.2.3.0 && <1.3 || >=2.0 && <2.2- , tmp-proc >=0.5.3 && <0.8+ , tmp-proc >=0.5.3 && <0.9 default-language: Haskell2010 ghc-options: -fno-ignore-asserts -Wall