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.3.1.tar.gz (6.1 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.3.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: harlequin_odbc-0.3.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for harlequin_odbc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c12ea98101ba5dffe212df2d5fbe0aef2e786eaa58d03d911bc3bbf89491be01
MD5 0080a5b46f0b885cc498b0a1266a10d7
BLAKE2b-256 e5c0a012185883fd7d472954e945dbcb5fbad50272c5d0b84396886896bf8682

See more details on using hashes here.

File details

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

File metadata

  • Download URL: harlequin_odbc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for harlequin_odbc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0056f00b7e8a3a67aeaa8671df09309bacde9348763c6557a6910c6935dfb8fe
MD5 4c604635865cda1718ff8a378fd87ead
BLAKE2b-256 f8209f765c12e4cc4bc7d23fb009a90bf6621a991117aada046944538d12502e

See more details on using hashes here.

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