Vertica dialect for sqlalchemy using vertica_python
Project description
Vertica dialect for sqlalchemy. Forked from the Vertica ODBC dialect, written by James Casbon.
This module implements a Vertica dialect for SQLAlchemy using the pure-Python DB-API driver vertica-python, as adapted by Luke Emery-Fertitta.
It is currently maintained by BlueLabs - PRs are welcome!
Engine creation:
import sqlalchemy as sa
sa.create_engine('vertica+vertica_python://user:pwd@host:port/database')
Installation
From PyPI:
pip install sqlalchemy-vertica-python
From git:
git clone https://github.com/bluelabsio/vertica-sqlalchemy-python cd vertica-sqlalchemy-python python setup.py install
Usage
ID/Primary Key Declaration
Do not use this. The INSERT will fail as it will try to insert the ID
id = Column(Integer, primary_key=True)
Do the following instead
id = Column(Integer, Sequence(‘user_id_seq’), primary_key=True)
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 Distribution
Built Distribution
Close
Hashes for sqlalchemy-vertica-python-0.5.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4307fd2db3a0dd2bba3245ad42ea3479189949c3790de19559e515ead893a417 |
|
MD5 | 9859c7d3213cb5742bab408f8a04aad8 |
|
BLAKE2b-256 | 3be05e96fabeab817395c38b642bb8b37efeab889c0cc70050720c9e89606fab |
Close
Hashes for sqlalchemy_vertica_python-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09af310baf58237bbd342d382d1484a804b3e160de91979871d8593fea7448a7 |
|
MD5 | d449b282a8bd6f6b716fcb8455711d51 |
|
BLAKE2b-256 | f4994800bca6ffaf31b0305e4e9ff4f72d9fbe3949ec455ea5ab5be056d5acd2 |