postgresql-simple-url-0.2.1.0: Parse postgres:// url into ConnectInfo
The URL
module in this package exports
two helper functions parseDatabaseUrl
and urlToConnectInfo
to
construct ConnectInfo
from URI (or string).
>>> parseDatabaseUrl "postgres:/foo:[email protected]:2345database" Just (ConnectInfo "example.com" 2345 "foo" "bar" "database")
Modules
postgresql-simple-url-0.2.1.0
- Database
- PostgreSQL