Denodo Dialect for SQLAlchemy
This package includes the Denodo Dialect for SQLAlchemy, which offers an easy way to connect to Denodo databases from SQLAlchemy https://www.sqlalchemy.org/
Denodo documentation and software resources are available at https://community.denodo.com
This dialect supports SQLAlchemy v2.0 and Denodo 8.0 and higher.
Pre-requisites
Python 3.9 or newer is needed.
This dialect requires the following Python modules:
- SQLAlchemy 2.0.x
- psycopg2 version 2.9 or higher.
This Python modules are also optional dependencies in order to use Denodo Virtual DataPort's (optional) Flight SQL interface:
- flightsql
- adbc-driver-flightsql version 1.3.0 or higher
- pyarrow version 18.1.0 or higher
Required dependencies will be installed automatically, in order to install dependencies for Flight SQL the flightsql extras package needs to be installed:
.. code-block::
pip install denodo-sqlalchemy[flightsql]
Alternatively, dependency packages can be installed manually:
.. code-block::
pip install sqlalchemy~=2.0.0
pip install psycopg2-binary>=2.9
pip install adbc-driver-flightsql~=1.4.0
pip install pyarrow~=19.0.0
Important: note also that psycopg2 has its own requirements for installation which need to be satisfied: https://www.psycopg.org/docs/install.html#prerequisites
Installation
The Denodo SQLAlchemy package can be installed from the public PyPI repository using :code:pip:
.. code-block::
pip install --upgrade denodo-sqlalchemy
or
pip install --upgrade denodo-sqlalchemy[flightsql]
:code:pip automatically installs all required modules.
Usage
To connect to Denodo VDP Server with SQLAlchemy, the following URL pattern can be used:
.. code-block::
denodo://<username>:<password>@<host>:<port[9996]>/<database>
This will create a connection using the default driver psycopg2, so it is equivalent to:
.. code-block::
denodo+psycopg2://<username>:<password>@<host>:<port[9996]>/<database>
In order to create a connection using Flight SQL, you would need:
.. code-block::
denodo+flightsql://<username>:<password>@<host>:<port[9994]>/<database>
Please note that Flight SQL connections assume SSL is enabled at the server. If not, you would need to add the use_encryption parameter set to False, like:
.. code-block::
engine = sqlalchemy.create_engine("denodo+flightsql://someuser:somepwd@someserver:9994/somedb", connect_args={"use_encryption":"false"})
Metadata
Release files for denodo-sqlalchemy 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| denodo_sqlalchemy-2.0.0.tar.gz | 28.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| denodo_sqlalchemy-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.4 kB
Release files / denodo_sqlalchemy-2.0.0.tar.gz
| Download URL | denodo_sqlalchemy-2.0.0.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a2d547d06519ba3f7921080f6779d1a588355b4e7c7495734c6c591ebff044f
|
|
BLAKE2b-256 checksum How to use checksums |
482de37eec34fdff4e2d73120a31a59d922ec60814486d816df1a7a632d54d1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / denodo_sqlalchemy-2.0.0-py3-none-any.whl
| Download URL | denodo_sqlalchemy-2.0.0-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
269a9d40374e31ee077a677f0c443c8ee914a8f5e3614d5443f32a4afc4b72e9
|
|
BLAKE2b-256 checksum How to use checksums |
bd6309886a7bcb158d4f31d449cac1969ec586a5ae4eece14e074b286c19d4d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|