TopMind Vertica Connector Wrapper
Project description
Customized vertica connector
The Python Wrapper to vertica_python lib for reconnectiong across server nodes
Usage
pip3 install vertica-connector-talenttech
import os
import json
from vconnector.vertica_connector import VerticaConnector
user = "test_user",
password = "test_password"
database = "test_database"
vertica_configs = json.loads(os.getenv("VERTICA_CONFIGS"))
with VerticaConnector(user=user,
password=password,
database=database,
vertica_configs=vertica_configs) as cnx:
cur = cnx.cursor()
sql = "SELECT 1"
cur.execute(sql)
VERTICA_CONFIGS var structure
{"host": <VERTICA_HOST>,
"port": <VERTICA_PORT>,
"backup_server_node": [<SERVER_NODE_1>, <SERVER_NODE_2>, <SERVER_NODE_3>}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for vertica-connector-talenttech-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b738adeb911f55a4f7d7cba0d68944067cb38d1646f96021ac4a7d83b41a9ceb |
|
MD5 | 643f7aabd8114a17bd489da1dc71ae9a |
|
BLAKE2b-256 | f731d90fcabd67402996bf66993d9edb7904d86e42fc9f260731a726e0300ad5 |
Close
Hashes for vertica_connector_talenttech-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a730e06e3153b11cb9f66896ad64a0c56c55ddb497cdd94fcb22e7716d2b54df |
|
MD5 | eca72638546a06a3d749d39e286e235f |
|
BLAKE2b-256 | 044aa2f50f16f8d055bbcf976953012336fc97b970cd0462c9ffab301b45863b |