hipsql-server-0.0.0.0
Safe HaskellNone
LanguageHaskell2010

Hipsql.Server

Description

Provides functions required to start a hipsql server which can be connected to from a client. In many cases it may be more convenient to use the Adapter module.

Synopsis

Documentation

startHipsql :: Maybe SrcLoc -> Connection -> IO () Source #

Start a hipsql session with the given Connection.

startHipsql' :: Maybe SrcLoc -> Config -> Deps -> Connection -> IO () Source #

Same as startHipsql but allows you to specify the Config and Deps directly.

startHipsqlWith :: Maybe SrcLoc -> ((Connection -> IO ()) -> IO ()) -> IO () Source #

Same as startHipsql except uses a Connection acquiring function. Useful when integrating with libraries like postgresql-simple which give you exclusive access to the Connection via such a function.

startHipsqlWith' :: Maybe SrcLoc -> Config -> Deps -> ((Connection -> IO ()) -> IO ()) -> IO () Source #

Same as startHipsqlWith but allows you to specify the Config and Deps directly.

newtype Config Source #

Configuration required for starting a hipsql server.

Constructors

Config 

Fields

getDefaultConfig :: IO Config Source #

Gets the default Config used by the hipsql server.

newtype Deps Source #

Dependencies required for starting a hipsql server.

Constructors

Deps 

Fields

getDefaultDeps :: IO Deps Source #

Gets the default Deps used by the hipsql server.