pg-harness-0.2.0: REST service and library for creating/consuming temporary PostgreSQL databases

Safe HaskellNone
LanguageHaskell2010

Data.PostgreSQL.Harness.Client

Description

Client library for pg-harness REST service.

Use the createTemporaryDatabase function to create the database.

Synopsis

Documentation

data ConnectionInformation Source

Connection information to use for connecting to a database.

createTemporaryDatabase :: String -> IO ConnectionInformation Source

Create temporary database using the given URL to a running pg-harness REST service. Returns the connection information for connecting to the newly created temporary database.

toConnectionString :: ConnectionInformation -> ByteString Source

Convert connection information to a libpq- or postgresql-simple-compatible connection string.