Adapter: Trino


harlequin-trino 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-trino

Using poetry

$ poetry add harlequin-trino

Using pipx

If you do not already have Harlequin installed:

$ pipx install harlequin[trino]

If you would like to add the Trino adapter to an existing Harlequin installation:

$ pipx inject harlequin harlequin-trino

As an Extra

Alternatively, you can install Harlequin with the trino extra:

$ pip install harlequin[trino]
$ poetry add harlequin[trino]
$ pipx install harlequin[trino]

Usage and Configuration

For a minimum connection you are going to need:

  • host
  • port
  • user
$ harlequin -a trino -h localhost -p 8080 -U my_user

If your trino instance requires a password you can set the --require_auth flag to password and use the --password flag for your password

$ harlequin -a trino -h localhost -p 8080 -U my_user --password my-pass --require_auth password

Many more options are available; to see the full list, run:

$ harlequin --help