1
0
Fork 0
Find a file
Daniel Baumann d6f7ec950b
Using codenames in changelog instead of suitenames.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-04 08:13:33 +01:00
.github/workflows Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
debian Using codenames in changelog instead of suitenames. 2025-03-04 08:13:33 +01:00
src/harlequin_postgres Adding upstream version 1.1.1. 2025-02-24 20:22:59 +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 Adding upstream version 1.1.1. 2025-02-24 20:22:59 +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 Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
poetry.lock Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
pyproject.toml Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00
README.md Adding upstream version 1.1.1. 2025-02-24 20:22:59 +01:00

harlequin-postgres

This repo provides the Harlequin adapter for Postgres.

Installation

harlequin-postgres depends on harlequin, so installing this package will also install Harlequin.

Using pip

To install this adapter into an activated virtual environment:

pip install harlequin-postgres

Using poetry

poetry add harlequin-postgres

Using pipx

If you do not already have Harlequin installed:

pip install harlequin-postgres

If you would like to add the Postgres adapter to an existing Harlequin installation:

pipx inject harlequin harlequin-postgres

As an Extra

Alternatively, you can install Harlequin with the postgres extra:

pip install harlequin[postgres]
poetry add harlequin[postgres]
pipx install harlequin[postgres]

Usage and Configuration

You can open Harlequin with the Postgres adapter by selecting it with the -a option and passing a Posgres DSN:

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

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

Many more options are available; to see the full list, run:

harlequin --help

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.