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
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
Built Distribution
Hashes for harlequin_postgres-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fa3d49cfa794cde2242eba2b34d5e931158ef3c069c526cf48f0b2ec5bee88 |
|
MD5 | 5a100cd46ff349ea20438b5f93d78b40 |
|
BLAKE2b-256 | 804f84181bcaa386627d71eb4b6066f708e2ed46efe239498da28c4d1f2fc3c9 |