Skip to main content

Vertica dialect for sqlalchemy

Project description

Vertica dialect for sqlalchemy

This module implements a Vertica dialect for SQLAlchemy. You can use it:

>>> import sqlalchemy as sa
>>> sa.create_engine(sa.engine.url.URL(
    drivername='vertica+pyodbc',
    username='myusername',
    password='mypassword',
    host='hostname',
    database='dbname',
))

This work is mainly a package of code [posted](https://groups.google.com/d/msg/sqlalchemy/ttJzN-t9R74/9W1d9KfHK_0J) to the SQLAlchemy mailing list by ‘Bo’ (Google groups won’t let me see the original author).

I have tested this for table introspection, selects and joins. However, I do not have access to a Vertica database to test against. If you do, let me know.

The primary, foreign and index constraints return nothing. This is because I’m told these are ‘enforced on select’. Maybe a Vertica expert can tell me the correct way to handle this.

Installation

With pip

pip install vertica-sqlalchemy-0.2

From git:

git clone https://bitbucket.com/shivamshukla/vertica-sqlalchemy-0.2 cd vertica-sqlalchemy-0.2 python setup.py install

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

vertica-sqlalchemy-0.2-0.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file vertica-sqlalchemy-0.2-0.2.tar.gz.

File metadata

File hashes

Hashes for vertica-sqlalchemy-0.2-0.2.tar.gz
Algorithm Hash digest
SHA256 b7af87430611945668ad217ecfc6411023386c313f11ca11ad852bba6b11f07b
MD5 4d87629802401201bb1fce1147420cca
BLAKE2b-256 69b8bac8ef46243b57672556e9c61064fe071a7988d606d85c1d370a2439b8b2

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