Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Vertica dialect for SQLAlchemy using the vertica-python client

License

Notifications You must be signed in to change notification settings

LocusEnergy/sqlalchemy-vertica-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlalchemy-vertica-python

NOTE: As of February 2020, The most up-to-date fork is being maintained here. Please direct all contributions to that repository.

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)

About

Vertica dialect for SQLAlchemy using the vertica-python client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%