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.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

harlequin_odbc-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_odbc-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for harlequin_odbc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 beb2b57836ccdb21b4fa4b151e2cd6fc1b946f4f914eb233de5debc2c08920cf
MD5 e107c015debf0780b31a52a61ed1aa61
BLAKE2b-256 d6407757a6aaf4a9925bc3d55c332f6914501d5a7ef239dbbb3592a0bed2c733

See more details on using hashes here.

File details

Details for the file harlequin_odbc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: harlequin_odbc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for harlequin_odbc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c5554dec9ef0bedad5acb040b7346ae60257e8b907f6254398ba6beec0cde21
MD5 76aeae19dc31f408147cc322cf390cce
BLAKE2b-256 3aee1605a3a8b2204b6ab3068057263f9160e3b49456d6df8966deb0ae97fce4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page