1
0
Fork 0
Find a file
Daniel Baumann c69b068a37
Releasing debian version 1.2.0-2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-09 18:14:40 +01:00
.github/workflows Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
debian Releasing debian version 1.2.0-2. 2025-03-09 18:14:40 +01:00
src/harlequin_postgres Merging upstream version 1.2.0. 2025-03-04 08:16:25 +01:00
tests Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
.gitignore Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
CHANGELOG.md Merging upstream version 1.2.0. 2025-03-04 08:16:25 +01:00
docker-compose.yml Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
LICENSE Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
Makefile Merging upstream version 1.2.0. 2025-03-04 08:16:25 +01:00
poetry.lock Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
pyproject.toml Merging upstream version 1.2.0. 2025-03-04 08:16:25 +01:00
README.md Merging upstream version 1.2.0. 2025-03-04 08:16:25 +01:00

harlequin-postgres

This project provides the Harlequin adapter for Postgres. For more information, see harlequin.sh.

Installation

You must install the harlequin-postgres package into the same environment as harlequin. The best and easiest way to do this is to use uv to install Harlequin with the postgres extra:

uv tool install 'harlequin[postgres]'

Using Harlequin with Postgres

To connect to a Postgres database, run Harlequin with the -a postgres option and pass a Posgres DSN as an argument:

harlequin -a postgres "postgres://my-user:my-pass@localhost:5432/my-database"

Connection Options

You can also pass all or parts of the connection string as separate options. The following is equivalent to the above DSN:

harlequin -a postgres -h localhost -p 5432 -U my-user --password my-pass -d my-database

The supported connection options are:

host
port
dbname
user
password
passfile
require_auth
channel_binding
connect_timeout
sslmode
sslcert
sslkey

For descriptions of each option, run:

harlequin --help

Environment Variables

Harlequin's Postgres driver will load connection information from the standard PG* environment variables. Any options supplied at the command-line will override environment variables.

Manual Transactions

To use Manual transaction mode, click on the label in the Run Query Bar to toggle the transaction mode from Auto to Manual.

Further Documentation

For more information, see the Harlequin Docs.