Skip to main content

SQLAlchemy dialect for SAP HANA Database

Project description

This dialect allows you to use the SAP HANA database with SQLAlchemy and pyhdb driver.

The dialect is currently experimental and doesn’t support all possible features in SQLAlchemy with SAP HANA.

The usage of the python database interface delivered by hdbclient, is currently not supported.

Prerequisites

At the moment the dialect only supports the pure Python database driver pyhdb. It’s recommended to use pyhdb version 0.3.1 or above.

See the README of pyhdb about how you can install the driver.

Install

Install from Python Package Index (coming soon):

$ pip install sqlalchemy-hana

You can also install the latest version direct from a cloned git repository.

$ git clone https://github.com/SAP/sqlalchemy-hana.git
$ cd sqlalchemy-hana
$ python setup.py install

Getting started

If you do not have access to a SAP HANA server, go to the SAP HANA Developer Center and choose one of the options to get your own trial SAP HANA Server.

Now you can create a engine with the usage of the HANA dialect. This engine works like all other engines of SQLAlchemy.

from sqlalchemy import create_engine
engine = create_engine('hana://username:password@example.de:30015')

Contribute

If you found bugs or have other issues than you are welcome to create a GitHub Issue. If you have questions about usage or something similar please create a Stack Overflow Question with tag sqlalchemy and hana.

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-hana-0.1.3.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file sqlalchemy-hana-0.1.3.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy-hana-0.1.3.tar.gz
Algorithm Hash digest
SHA256 005677ad0051aef0848507c99df2263ff227f056ff41ae500015c6de9760a1cd
MD5 cd8457e53d84130092c78d7352c688dc
BLAKE2b-256 a3e6862bf2fd0c58e7a870f43ad4c88a1eaea28c4be5e2bf261c6ad3fe72da04

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