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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f013122c7304a82dcf2eafd488d40c09838c0f061eceae1ebcd4562fece93c6a |
|
MD5 | 774892a7f88f87bacf1f4bbad2427747 |
|
BLAKE2b-256 | c7dd12ec3565264b4b096452564a8c4dd95ffcf5605c303599cdc445bb024f3d |
Close
Hashes for vertica_connector_talenttech-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ce0bc2ec01a01d44e8701e6a3bc46467f5bd27ab29ac9ff130af0f8576cc56 |
|
MD5 | cdfc55be50b23902431d99602c0c9196 |
|
BLAKE2b-256 | 9c3de3f67846baab1ea9f435cb8bbb7115889e4a972b64e6f7942e724f576e1a |