Skip to main content

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)

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.5.7.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlalchemy_vertica_python-0.5.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy-vertica-python-0.5.7.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for sqlalchemy-vertica-python-0.5.7.tar.gz
Algorithm Hash digest
SHA256 857f50f63741d9ed9f1aeb61f5057f86cba6ccfddc8ff5b274cb49068cd5b8a9
MD5 36c357b6688fb1f7745ebb963d55a867
BLAKE2b-256 2badb8defa371b3d065934d04dd34def4dcc94da521026cd270046810ac74acd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_vertica_python-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for sqlalchemy_vertica_python-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 feabe87defcfb5603fe09de674c754eaecbcea587b66a27ca4a3b7d96d13dc97
MD5 1148cca7a8c42c3818feba24d3470b1f
BLAKE2b-256 13de19933013eca37369f8db289262f5442f5e5707ff0f1fcba293a09ea9335f

See more details on using hashes here.

Supported by

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