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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98356c5ebaacc23daff35e165d4490e1ea10dc591fa9cb0824f41272b39d13f0
|
|
| MD5 |
7e7acea7be58b5460f21bdbd6c578796
|
|
| BLAKE2b-256 |
c11be5bc547d98771ce87a8c5ef3c96908e93c95406b50462085a3ebfcd2f86d
|
Provenance
The following attestation bundles were made for harlequin_odbc-0.4.0.tar.gz:
Publisher:
publish.yml on tconbeer/harlequin-odbc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harlequin_odbc-0.4.0.tar.gz -
Subject digest:
98356c5ebaacc23daff35e165d4490e1ea10dc591fa9cb0824f41272b39d13f0 - Sigstore transparency entry: 653012859
- Sigstore integration time:
-
Permalink:
tconbeer/harlequin-odbc@6de3bce738e4a4274366723d915cd7ae349e01a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tconbeer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6de3bce738e4a4274366723d915cd7ae349e01a2 -
Trigger Event:
pull_request
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f2141d0d8afb7682394270f11ce31befbef647f707a125694c6a2cb610dd66
|
|
| MD5 |
ace91fd2e9b3abe1313ce93cbaef0a9d
|
|
| BLAKE2b-256 |
7247af8d44c2b064ddce9391fc472015a9841ad7c02fe4a0758d01993033c0ba
|
Provenance
The following attestation bundles were made for harlequin_odbc-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on tconbeer/harlequin-odbc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harlequin_odbc-0.4.0-py3-none-any.whl -
Subject digest:
57f2141d0d8afb7682394270f11ce31befbef647f707a125694c6a2cb610dd66 - Sigstore transparency entry: 653012867
- Sigstore integration time:
-
Permalink:
tconbeer/harlequin-odbc@6de3bce738e4a4274366723d915cd7ae349e01a2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tconbeer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6de3bce738e4a4274366723d915cd7ae349e01a2 -
Trigger Event:
pull_request
-
Statement type: