Skip to main content

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


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

Uploaded Source

Built Distribution

sqlalchemy_vertica_python-0.5.5-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy-vertica-python-0.5.5.tar.gz
  • Upload date:
  • Size: 4.9 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.5.tar.gz
Algorithm Hash digest
SHA256 73ec02e1680062f4038d9b5a2622f84b2ae3c243427a00f686d64d25cd7c22ff
MD5 6f59c15baee67a661375484f4c95f696
BLAKE2b-256 021ddc11c88301329d279188b72f8fce6736793522e78a9ab99c52ae654d0959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_vertica_python-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c2846704dc435ff4180c57bd95ac3df0ae45475fbec37e6462cee98a798cf9fd
MD5 aa285bed5d593b54b672cec00523e1f7
BLAKE2b-256 4d3ca1ca7621ea56945c777385ff4233175e23efd675b2fd8856406c5350f4ec

See more details on using hashes here.

Supported by

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