Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Tempgres.Client
Description
Client library for Tempgres.
Use the createTemporaryDatabase
function to create databases.
Synopsis
Documentation
data ConnectionInformation Source #
Connection information to use for connecting to a database.
Constructors
ConnectionInformation | |
Fields
|
createTemporaryDatabase :: String -> IO ConnectionInformation Source #
Create temporary database using the given URL to a
running Tempgres
server. 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.