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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1102680bbc77b11e0cc5f4b86247100ba843c66206ea2b6fb024566b9fa6e0 |
|
MD5 | 2c622401a1c00286877a5314e9ad2c52 |
|
BLAKE2b-256 | d6bb7013279d7b55bada3ee02ee3b191b43647f33d89bc8ae2c4edd123dd2537 |
Close
Hashes for vertica_connector_talenttech-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 794b9a774ad5aa1e6fdf997f35ce932259122ec29f2c8d547b82e7fbd60be758 |
|
MD5 | b68794be554fd3cc796ac156e180a9b2 |
|
BLAKE2b-256 | e532e02535543cfe4f9d4cd366fdee7d76987311bbefd9780db97ae1973da75b |