Copyright | 2014 2015 © Futurice OY Oleg Grenrus |
---|---|
License | MIT (see the file LICENSE) |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
parseDatabaseUrl :: String -> Maybe ConnectInfo Source #
Parse string url into ConnectInfo
.
parseDatabaseURL "postgres://foo:bar@example.com:2345/database" == ConnectInfo "example.com" 2345 "foo" "bar" "database"
uriToConnectInfo :: URI -> Maybe ConnectInfo Source #