Vertica dialect for sqlalchemy using vertica_python
Project description
Vertica dialect for sqlalchemy. Forked from the Vertica ODBC dialect.
This module implements a Vertica dialect for SQLAlchemy using vertica-python. 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/LocusEnergy/vertica-sqlalchemy cd vertica-sqlalchemy 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
Close
Hashes for sqlalchemy-vertica-python-0.4.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7934bd4d082d662e5983c71827969ee012cdd6705043ecb7069033b6ab1c0e72 |
|
MD5 | 18a56d3b974db04b17e210fbeaebb34e |
|
BLAKE2b-256 | 54a45a007fc26d0924706d9cb546153202786d17505852440bd12e5150e17690 |