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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857f50f63741d9ed9f1aeb61f5057f86cba6ccfddc8ff5b274cb49068cd5b8a9 |
|
MD5 | 36c357b6688fb1f7745ebb963d55a867 |
|
BLAKE2b-256 | 2badb8defa371b3d065934d04dd34def4dcc94da521026cd270046810ac74acd |
Close
Hashes for sqlalchemy_vertica_python-0.5.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feabe87defcfb5603fe09de674c754eaecbcea587b66a27ca4a3b7d96d13dc97 |
|
MD5 | 1148cca7a8c42c3818feba24d3470b1f |
|
BLAKE2b-256 | 13de19933013eca37369f8db289262f5442f5e5707ff0f1fcba293a09ea9335f |