Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-vertica-python-0.6.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sqlalchemy-vertica-python-0.6.3.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy-vertica-python-0.6.3.tar.gz
Algorithm Hash digest
SHA256 5cbebb9875e59366b9e3b4791ef7c2a8e45dbe460fd27687f3dc742dc058a024
MD5 17015d17ca93ba0929ce8e95eafdcb66
BLAKE2b-256 e0fce52cac0df3d55a2b4d0b07d449ddf9600adcc35c5715b289e17114ad86c2

See more details on using hashes here.

File details

Details for the file sqlalchemy_vertica_python-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_vertica_python-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f41c8d51f81bb00d9064cfe8facfda698667c105200f5d570d574696bcca4c9
MD5 3199410dc592bb9c08a1b587221ea818
BLAKE2b-256 1b7fbc56d6d5dd40ead585529289505547f83322e1ba2cd4990bde534d2445c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page