lib.postgres

run-pg-lifecycle

added in 4.1

(run-pg-lifecycle rt command)

executes a postgres runtime lifecycle hook using std.lib.os/sh arguments

start-pg

(start-pg pg)

start-pg-raw

added in 4.0

(start-pg-raw {:keys [instance host port container temp], :as pg})

starts the database

start-pg-temp-init

added in 4.0

(start-pg-temp-init {:keys [dbname], :as pg})

initialises a temp database

stop-pg

(stop-pg pg)

stop-pg-raw

added in 4.0

(stop-pg-raw {:keys [instance notifications temp], :as pg})

stops the postgres runtime

stop-pg-temp-teardown

added in 4.0

(stop-pg-temp-teardown {:keys [dbname], :as pg})

tears down a temp database

wait-for-pg

added in 4.0

(wait-for-pg {:keys [instance host port container temp], :as pg} limit sleep)

waits for the postgres database to come online