Skip to main content

Python SQLAlchemy Dialect for JDBCAPI.

Project description

https://img.shields.io/pypi/dm/sqlalchemy-jdbcapi.svg

The primary purpose of this dialect is to provide JDBC connection using provided driver(JAR).

Installation

Installing the dialect is straightforward:

python3 -m pip install sqlalchemy-jdbcapi

Usage

Set an environment variable export CLASSPATH=<path>/ojdbc8.jar:<path>/postgresql-42.2.9.jre7.jar

PostgressSQL:

from sqlalchemy import create_engine
create_engine('jdbcapi+pgjdbc://{}:{}@{}/{}'.format(username, password, <ip:host>', <database name>))

Oracle:

create_engine("jdbcapi+oraclejdbc://username:password@HOST:1521/Database")

GenericJDBCConnection:

Set an environment variable `JDBC_DRIVER_PATH`

Supported databases

In theory every database with a suitable JDBC driver should work.

  • SQLite

  • Hypersonic SQL (HSQLDB)

  • IBM DB2

  • IBM DB2 for mainframes

  • Oracle

  • Teradata DB

  • Netezza

  • Mimer DB

  • Microsoft SQL Server

  • MySQL

  • PostgreSQL

  • many more…

Contributing

Please submit bugs and patches. All contributors will be acknowledged. Thanks!

Changelog

  • 1.2.1 - 2020-09-9 - Minor fix.

  • 1.2.0 - 2020-09-1 - Issue: PGarray not iterable.

  • 1.1.0 - 2020-08-4 - Initial release.

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

sqlalchemy_jdbcapi-1.2.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlalchemy_jdbcapi-1.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy_jdbcapi-1.2.1.tar.gz.

File metadata

  • Download URL: sqlalchemy_jdbcapi-1.2.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sqlalchemy_jdbcapi-1.2.1.tar.gz
Algorithm Hash digest
SHA256 c9f7799f9af80fa71becaaddcc3c5b1b8bca39ccbd447fa54e67b2fb06e477ec
MD5 d29d50bd0259df90c1c69c83e7f75859
BLAKE2b-256 5f03abf7225f578700c0d95201e8586e4c7bccc8f4f7318e1d3e42ab002feb65

See more details on using hashes here.

File details

Details for the file sqlalchemy_jdbcapi-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_jdbcapi-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sqlalchemy_jdbcapi-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 075dc09488867152ddd6881248975c08cfa4d1bd234ebdc34e4c42b2e8232e90
MD5 deea389c2669dbf5b650e14d9e446e75
BLAKE2b-256 29962fca8764009cf7ee863b1676c35eaa0dfc877216bb195e4f50d6775144bf

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