Skip to main content

A Harlequin adapter for ODBC drivers.

Project description

harlequin-odbc

This repo provides the ODBC adapter for Harlequin.

Installation

harlequin-odbc depends on harlequin, so installing this package will also install Harlequin.

Pre-requisites

You will need an ODBC driver manager installed on your OS. Windows has one built-in, but for Unix-based OSes, you will need to download and install one before installing harlequin-odbc. You can install unixODBC with brew install unixodbc or sudo apt install unixodbc. See the pyodbc docs for more info.

Additionally, you will need to install the ODBC driver for your specific database (e.g., ODBC Driver 18 for SQL Server for MS SQL Server). For more information, see the docs for your specific database.

Using pip

To install this adapter into an activated virtual environment:

pip install harlequin-odbc

Using poetry

poetry add harlequin-odbc

Using pipx

If you do not already have Harlequin installed:

pip install harlequin-odbc

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

pipx inject harlequin harlequin-odbc

As an Extra

Alternatively, you can install Harlequin with the odbc extra:

pip install harlequin[odbc]
poetry add harlequin[odbc]
pipx install harlequin[odbc]

Usage and Configuration

You can open Harlequin with the ODBC adapter by selecting it with the -a option and passing an ODBC connection string:

harlequin -a odbc 'Driver={ODBC Driver 18 for SQL Server};Server=tcp:harlequin-example.database.windows.net,1433;Database=dev;Uid=harlequin;Pwd=my_secret;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;'

The ODBC adapter does not accept other options.

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_odbc-0.4.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

harlequin_odbc-0.4.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file harlequin_odbc-0.4.0.tar.gz.

File metadata

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

File hashes

Hashes for harlequin_odbc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 98356c5ebaacc23daff35e165d4490e1ea10dc591fa9cb0824f41272b39d13f0
MD5 7e7acea7be58b5460f21bdbd6c578796
BLAKE2b-256 c11be5bc547d98771ce87a8c5ef3c96908e93c95406b50462085a3ebfcd2f86d

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlequin_odbc-0.4.0.tar.gz:

Publisher: publish.yml on tconbeer/harlequin-odbc

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_odbc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: harlequin_odbc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for harlequin_odbc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57f2141d0d8afb7682394270f11ce31befbef647f707a125694c6a2cb610dd66
MD5 ace91fd2e9b3abe1313ce93cbaef0a9d
BLAKE2b-256 7247af8d44c2b064ddce9391fc472015a9841ad7c02fe4a0758d01993033c0ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for harlequin_odbc-0.4.0-py3-none-any.whl:

Publisher: publish.yml on tconbeer/harlequin-odbc

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