SQLAlchemy support for GBase 8s Servers
Project description
GBasedbt Alchemy Adapter
The GBasedbt Alchemy adapter provides the Python/SQLAlchemy interface to GBase 8s Servers. Fork from https://github.com/OpenInformix/InformixAlchemy
Version
x.x.x
Prerequisites
- Python 3.5.x .
- SQLAlchemy 0.7.3 or above.
- DbtPy driver and DbtPyDbi
Install and Configuration
The GBasedbt Alchemy Python Egg component (.egg) can be installed using the standard setuptools provided by the Python Easy Install through Python Enterprise Application Kit community portal: http://peak.telecommunity.com/DevCenter/EasyInstall
Please follow the steps provided to Install "Easy Install" in the link above and follow up with these additional steps to install GBasedbt Alchemy:
- To install GBasedbt Alchemy from source Standard Python setup should be used:: python setup.py build python setup.py install
Connecting
A TCP/IP connection can be specified as the following::
from sqlalchemy import create_engine
e = create_engine("gbasedbt://user:pass@host[:port]/database")
For a local socket connection, exclude the "host" and "port" portions::
from sqlalchemy import create_engine
e = create_engine("gbasedbt://user:pass@/database")
Known Limitations in DbtAlchemy adapter for GBase 8s databases
- Non-standard SQL queries are not supported. e.g. "SELECT ? FROM TAB1"
- For updations involving primary/foreign key references, the entries should be made in correct order. Integrity check is always on and thus the primary keys referenced by the foreign keys in the referencing tables should always exist in the parent table.
- Unique key which contains nullable column not supported
- UPDATE CASCADE for foreign keys not supported
- DEFERRABLE INITIALLY deferred not supported
- Subquery in ON clause of LEFT OUTER JOIN not supported
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for DbtAlchemy-1.0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45b2f7abc918c470bb064f9325bf4aba426924db7add965ada2579e3f99ac1ab |
|
MD5 | 30d3319be3e2fed0de2967b36819b786 |
|
BLAKE2b-256 | fd1c99e460eaf5f7f651c5d218da0a4cc279b79674dea1cbbbb53842a3d4edc7 |