hasql-url: Parse PostgreSQL connection URI into Hasql.Connection Settings
The Hasql.URL
module in this package exports
a helper function parseDatabaseUrl
to
construct Settings
from a URI (or string).
.
>>> parseDatabaseUrl "postgres://username:password
localhost:5433/database"
Just "host=localhost port=5433 user=username password=password dbname=database"
@
[Skip to Readme]
Downloads
- hasql-url-0.3.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.17 && <5), bytestring (>=0.10 && <0.12), hasql (>=1.5 && <2), network-uri (>=2.6.3 && <2.7), split (>=0.2.3 && <0.3) [details] |
Tested with | ghc ==9.4 |
License | MIT |
Copyright | 2020 Nadeem Bitar |
Author | Nadeem Bitar |
Maintainer | Nadeem Bitar <nadeem@gmail.com> |
Category | Utility |
Home page | https://github.com/shinzui/hasql-url |
Bug tracker | https://github.com/shinzui/hasql-url/issues |
Source repo | head: git clone https://github.com/shinzui/hasql-url.git |
Uploaded | by shinzui at 2023-12-26T21:23:21Z |
Distributions | |
Downloads | 381 total (4 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2023-12-27 [all 2 reports] |