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

[ library, mit, utility ] [ Propose Tags ] [ Report a vulnerability ]

The Hasql.URL module in this package exports a helper function parseDatabaseUrl to construct Settings from a URI (or string). . >>> parseDatabaseUrl "postgres://username:passwordlocalhost:5433/database" Just "host=localhost port=5433 user=username password=password dbname=database" @


[Skip to Readme]

Modules

[Last Documentation]

  • Hasql
    • Hasql.URL

Downloads

Maintainer's Corner

Package maintainers

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 (5 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]

Readme for hasql-url-0.3.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.