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 v_connector:
cur = v_connector.cnx.cursor()
sql = "SELECT 1"
cur.execute(sql)
VERTICA_CONFIGS variable 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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3eb767a3a7ba33874c5c862dc4a9b4dee220e57bb28c895610923a87a62f47 |
|
MD5 | e86c5585953167047df0ef37c8a4f0ab |
|
BLAKE2b-256 | ade9e87f700252d6e9a6b90b9ff6279ef19d2cd4d085a7f8d4e587284dec8688 |
Close
Hashes for vertica_connector_talenttech-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb882f3c8a8078e8cdb6358cfa8b943bd474ce5bd62c3aa8aef4f64cecea512 |
|
MD5 | 9d66fbcaef8601b035d547e3f0294912 |
|
BLAKE2b-256 | f5c7338a7fd563d04c09b02fc003d1e2a4515703c102ed3de6390b25afe9af09 |