The gargoyle-postgresql package

[ Tags: bsd3, library, postgresql, program ] [ Propose Tags ]

This package provides tools for managing PostgreSQL servers that live in local folders and communicate via a Unix domain socket. It uses the gargoyle package in order to automatically initialize, spin up, and spin down such servers according to client demand.

The gargoyle-psql executable is such a client which will try to connect to a PostgreSQL server at a given location:

gargoyle-psql db
psql (9.5.6)
Type "help" for help.


Note that gargoyle-psql assumes that PostgreSQL executables such as psql are available on the PATH. A custom Gargoyle is required to use non-standard PostgreSQL installations.

The following is an example of using this package to run postgresql-simple actions using a local DB:

import Database.PostgreSQL.Simple
import Gargoyle
import Gargoyle.PostgreSQL

withDb :: String -> (Connection -> IO a) -> IO a
withDb dbPath a = withGargoyle defaultPostgres dbPath $ \dbUri -> a =<< connectPostgreSQL dbUri


Versions 0.1
Dependencies base (>=4.9 && <4.11), bytestring (==0.10.*), directory (==1.3.*), gargoyle (==0.1.*), gargoyle-postgresql, process (==1.4.*), stringsearch (==0.3.*), text (==1.2.*), unix (==2.7.*) [details]
License BSD3
Copyright Copyright (C) 2017 Obsidian Systems LLC
Author Obsidian Systems LLC
Category PostgreSQL
Uploaded Thu Oct 12 22:01:31 UTC 2017 by RyanTrinkle
Executables gargoyle-postgres-monitor, gargoyle-psql
Downloads 30 total (30 in the last 30 days)
Rating 2.0 (1 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI





Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees