Skip to main content

A Harlequin adapter for Postgres.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harlequin_postgres-0.4.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

harlequin_postgres-0.4.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file harlequin_postgres-0.4.0.tar.gz.

File metadata

  • Download URL: harlequin_postgres-0.4.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.14 Linux/6.5.0-1025-azure

File hashes

Hashes for harlequin_postgres-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d72f12df3e994edf8f660ef9681fdb2a710f740b6a8d9d88ab206d50193c2050
MD5 ad6282f9ead3bd34c9b1f43e7f6ecd0e
BLAKE2b-256 715f2015e5d09c34234f4a764df6083405be045f99ea9bf196473d68d3338058

See more details on using hashes here.

File details

Details for the file harlequin_postgres-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: harlequin_postgres-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.14 Linux/6.5.0-1025-azure

File hashes

Hashes for harlequin_postgres-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b099de45e6b09ce3f37c3d1c77b4ac9844f784093924a818b17e0bb0268a06de
MD5 bd30b059797d37a4f742f6e11f133b40
BLAKE2b-256 bd65a5109ef382debe971c0017cd8192ef98b582550963cfe2f20dec3b9fb982

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page