hasql-url: Parse PostgreSQL connection URI into Hasql.Connection Settings

[ library, mit, utility ] [ Propose Tags ]

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:5433database"
Just "host=localhost port=5433 user=username password=password dbname=database"

[Skip to Readme]
Versions [RSS] [faq] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.13 && <4.15), bytestring (==0.10.*), hasql (>=1.4.4 && <1.5), network-uri (>=2.6.3 && <2.7), split (>=0.2.3 && <0.3) [details]
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 2021-01-05T04:36:39Z
Distributions NixOS:0.1.0.0
Downloads 35 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-01-05 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for hasql-url-0.1.0.0

[back to package description]

hasql-url

GitHub CI Hackage MIT license

URL parser for hasql. This package is a direct port of postgresql-simple-url.