Skip to main content

A Harlequin adapter for Postgres.

Project description

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.

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-1.3.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harlequin_postgres-1.3.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_postgres-1.3.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for harlequin_postgres-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d3532594693c745796b5ba4434218662ce3f9e5abb68b2e4159a825c62eb378b
MD5 c22f1f4c70e7da654a846d06c5f38595
BLAKE2b-256 53f21583d9c25b6245a04ab982fcf6bc08e6602668ecd8c5003f398dce267dad

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlequin_postgres-1.3.0.tar.gz:

Publisher: publish.yml on tconbeer/harlequin-postgres

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for harlequin_postgres-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8a9d82de7d2046ab7c72aec347e0f426f91fe9b34ccdde3f24bdd205b7d57c
MD5 cb9307194c48f3530b1f4e19d818f4ba
BLAKE2b-256 2b7b6d6b4221a0614d3138629a69581daac6b1b7581966654aa3276c7af38285

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlequin_postgres-1.3.0-py3-none-any.whl:

Publisher: publish.yml on tconbeer/harlequin-postgres

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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