ODBC

Linux

Installation

For now soci-odbc is not available from conda-forge. The package is available under different names depending on your Linux distribution.

For example:

sudo dnf install libaio.x86_64 soci.x86_64 soci-odbc.x86_64

Then from conda

conda install xeus-sql jupyterlab -c conda-forge

Usage

To use the ODBC driver from inside a notebook you need to connect to the compatible database with the `LOAD` magic and the related driver.

For example:

Once the PostGreSQL driver installed

%LOAD odbc DRIVER=<path to the pgsql driver>;DBQ=<hostname>:<port>/<database>;UID=<user>;PWD=<password>