| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- startHipsql :: Maybe SrcLoc -> Connection -> IO ()
- startHipsql' :: Maybe SrcLoc -> Config -> Deps -> Connection -> IO ()
- startHipsqlWith :: Maybe SrcLoc -> ((Connection -> IO ()) -> IO ()) -> IO ()
- startHipsqlWith' :: Maybe SrcLoc -> Config -> Deps -> ((Connection -> IO ()) -> IO ()) -> IO ()
- newtype Config = Config {}
- getDefaultConfig :: IO Config
- newtype Deps = Deps {}
- getDefaultDeps :: IO Deps
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.
Configuration required for starting a hipsql server.
Dependencies required for starting a hipsql server.