postgresql-simple-url-0.1.0.0: PostgreSQL

Copyright2014, 2015 © Futurice OY, Oleg Grenrus
LicenseMIT (see the file LICENSE)
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Simple.URL

Description

 

Synopsis

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"