project-m36-0.9.8: Relational Algebra Engine
Safe HaskellSafe-Inferred
LanguageHaskell2010

ProjectM36.Server

Synopsis

Documentation

requestHandlers :: TestMode -> Maybe Timeout -> RequestHandlers ServerState Source #

getConn :: ConnectionState ServerState -> IO Connection Source #

testModeHandlers :: Maybe Timeout -> RequestHandlers ServerState Source #

loggingNotificationCallback :: NotificationCallback Source #

A notification callback which logs the notification to stderr and does nothing else.

addClientLogin :: DatabaseName -> ConnectionState ServerState -> IO () Source #

launchServer :: ServerConfig -> Maybe (MVar SockAddr) -> IO Bool Source #

A synchronous function to start the project-m36 daemon given an appropriate ServerConfig. Note that this function only returns if the server exits. Returns False if the daemon exited due to an error. If the second argument is not Nothing, the port is put after the server is ready to service the port.