@hackage postgresql-connection-string0.1.0.3

PostgreSQL connection string type, parser and builder

A library for parsing and constructing PostgreSQL connection strings (URIs and keyword/value format).

Supports the full PostgreSQL connection URI format as specified in the PostgreSQL documentation, including:

  • User and password authentication

  • Single and multiple host specifications with optional ports

  • Database name specification

  • Connection parameters as query string

  • Percent-encoding for special characters

The library provides both parsing (from Text to structured representation) and rendering (back to connection string format, either as URI or keyword/value pairs).