postgresql-simple-url: Parse postgres:// url into ConnectInfo

[ database, library, mit ] [ Propose Tags ]

The Database.PostgreSQL.Simple.URL module in this package exports two helper functions parseDatabaseUrl and urlToConnectInfo to construct ConnectInfo from URI (or string).

>>> parseDatabaseUrl "postgres:/foo:bar@example.com:2345database"
Just (ConnectInfo "example.com" 2345 "foo" "bar" "database")

[Skip to Readme]
Versions 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.1.0
Change log CHANGELOG.md
Dependencies base (>=4.6 && <4.12), network-uri (==2.6.*), postgresql-simple (>=0.4 && <0.6), split (==0.2.*) [details]
License MIT
Copyright Copyright © 2014-2018 Futurice OY, Oleg Grenrus
Author Oleg Grenrus
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Category Database
Home page https://github.com/futurice/postgresql-simple-url
Source repo head: git clone https://github.com/futurice/postgresql-simple-url
Uploaded by phadej at Tue Mar 20 20:04:46 UTC 2018
Distributions LTSHaskell:0.2.1.0, NixOS:0.2.1.0, openSUSE:0.2.1.0
Downloads 2225 total (18 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-20 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for postgresql-simple-url-0.2.1.0

[back to package description]

posgresql-simple-url

Build Status

Url parser for posgresql-simple. Useful in heroku.