1
0
Fork 0
Find a file
Daniel Baumann 99298ed60e
Using codenames in changelog instead of suitenames.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-03-04 08:13:24 +01:00
.github/workflows Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
debian Using codenames in changelog instead of suitenames. 2025-03-04 08:13:24 +01:00
src/harlequin_odbc Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
tests Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
.gitignore Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
CHANGELOG.md Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
docker-compose.yml Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
LICENSE Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
Makefile Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
poetry.lock Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
pyproject.toml Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00
README.md Adding upstream version 0.2.0. 2025-02-24 20:26:40 +01:00

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.