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.2.1.tar.gz (19.3 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.2.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_postgres-1.2.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.18 Linux/6.11.0-1018-azure

File hashes

Hashes for harlequin_postgres-1.2.1.tar.gz
Algorithm Hash digest
SHA256 4cdab076cfc9690f9ff6823c34641b24779cc08815e4871c442bec5ee26574ad
MD5 9c8a492a0f1cd920348d890a5fae03a3
BLAKE2b-256 2b74cf2ef5bab78830bddda4dd43c96b28e06c8482b08edcf45cad872b74cbf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: harlequin_postgres-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.18 Linux/6.11.0-1018-azure

File hashes

Hashes for harlequin_postgres-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcdac650478beb408e0016b8ad3472d79c4dbdf0d65d353d025e0d38a7002acf
MD5 13c0cce6cf66bd0c8be25f03f8dc3682
BLAKE2b-256 673dc03f2527f20d583e21f3d0368afc5ae71ade379c42363c6dcf80a270975f

See more details on using hashes here.

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