@hackage hasql-url0.1.0.0

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