| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Postgres.Temp.Internal
- openFreePort :: IO Int
- waitForDB :: FilePath -> Int -> IO ()
- data DB = DB {}
- start :: [(String, String)] -> IO (Either StartError DB)
- fourth :: (a, b, c, d) -> d
- shellWith :: Handle -> Handle -> String -> CreateProcess
- config :: FilePath -> String
- data StartError
- throwIfError :: (ExitCode -> StartError) -> ExitCode -> IO ()
- pidString :: ProcessHandle -> IO String
- runProcessWith :: Handle -> Handle -> String -> String -> IO ExitCode
- startWithHandles :: [(String, String)] -> Handle -> Handle -> IO (Either StartError DB)
- startWithHandlesAndDir :: [(String, String)] -> FilePath -> Handle -> Handle -> IO (Either StartError DB)
- data Event
- rmDirIgnoreErrors :: FilePath -> IO ()
- startWithLogger :: (Event -> IO ()) -> [(String, String)] -> FilePath -> Handle -> Handle -> IO (Either StartError DB)
- startAndLogToTmp :: [(String, String)] -> IO (Either StartError DB)
- stop :: DB -> IO ExitCode
Documentation
openFreePort :: IO Int Source #
Constructors
| DB | |
Fields
| |
start postgres and use the current processes stdout and stderr
throwIfError :: (ExitCode -> StartError) -> ExitCode -> IO () Source #
Arguments
| :: [(String, String)] | Extra options which override the defaults |
| -> Handle | stdout |
| -> Handle | stderr |
| -> IO (Either StartError DB) |
Start postgres and pass in handles for stdout and stderr
startWithHandlesAndDir :: [(String, String)] -> FilePath -> Handle -> Handle -> IO (Either StartError DB) Source #
Constructors
| InitDB | |
| WriteConfig | |
| FreePort | |
| StartPostgres | |
| WaitForDB | |
| CreateDB | |
| Finished |
rmDirIgnoreErrors :: FilePath -> IO () Source #
startWithLogger :: (Event -> IO ()) -> [(String, String)] -> FilePath -> Handle -> Handle -> IO (Either StartError DB) Source #