postgresql-simple-url: Parse postgres:// url into ConnectInfo
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]
Downloads
- postgresql-simple-url-0.2.1.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Versions [RSS] | 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.17), network-uri (>=2.6 && <2.7), postgresql-simple (>=0.4 && <0.7), split (>=0.2 && <0.3) [details] |
License | MIT |
Copyright | Copyright © 2014-2018 Futurice OY, Oleg Grenrus |
Author | Oleg Grenrus |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Revised | Revision 5 made by phadej at 2022-01-02T18:32:21Z |
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 2018-03-20T20:04:46Z |
Distributions | LTSHaskell:0.2.1.0, NixOS:0.2.1.0, Stackage:0.2.1.0 |
Downloads | 4624 total (18 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2018-03-20 [all 1 reports] |