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.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.0.tar.gz (5.6 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.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy_jdbcapi-1.2.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 461743eeb4583f05a99945a1fa85d4ff98c3108de1b70f46ea523a65bcb65304
MD5 a0233ba3ceaaaac5181fdb95a7462386
BLAKE2b-256 8803e4c3b205b896fa721714ee339c9b05f04a832b2bdc6c7d6279e7d8917ef3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_jdbcapi-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79e4f2245bde09312ee730edd6fccd62befd94ed429415d6aed4fe9f07773949
MD5 59e4f9bc16fa9985ae8cdd0d3da1f7f6
BLAKE2b-256 18930f0b0ae5f865d3b00d9ed726a0733f2858dd8fdf1402058d825f99f58dbd

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