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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harlequin_postgres-1.1.0.tar.gz.
File metadata
- Download URL: harlequin_postgres-1.1.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.16 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e9e863170dcf4a8c7f194a30ae7e3c791226371fd08a9779c5bcff432d1d69d
|
|
| MD5 |
0543ea30058d65e5ed4c3a340bda554f
|
|
| BLAKE2b-256 |
99067ae3b90f55d454fb6a82844ab92bc385bc96d62ae5fd15f0af12575b011e
|
File details
Details for the file harlequin_postgres-1.1.0-py3-none-any.whl.
File metadata
- Download URL: harlequin_postgres-1.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.16 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8752e0755405c734676323e307b3f12cb9d23b82e345e4e82ea377fa69375f22
|
|
| MD5 |
49d9e71eca646de216ac875cf7caf925
|
|
| BLAKE2b-256 |
87ef7818439d9b2ce5205b4509b28ebece5d7863d424fea36b8ad1116d2f2a6c
|